Pergunta de entrevista da empresa Imperva

Implement a basic class that adds values to container. When I asked what are my prerequisites he said none, but later on he added constraints and told me that "you shouldve known that"

Resposta da entrevista

Sigiloso

24 de out. de 2024

I implemented a basic class that allowed adding values and calculating their average, adhering to RAII principles. However, the initial solution was disqualified because the interviewer mentioned a constraint that the container should only hold a specific number of elements. I incorporated this logic and fine-tuned the solution, but by that point, the interviewer seemed disinterested. The interview was delayed by 20 minutes due to the interviewer's late arrival.