I had multiple successful interviews. Then, after many interviews, they just sent a message which only said that they moved on with someone else. No explanation or personal response were given.
Candidatei-me por meio de uma faculdade ou universidade. Fui entrevistado pela Avalor (Ramat Gan) em jan. de 2024
Entrevista
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
Implement the MinStack class:
MinStack() initializes the stack object.
void push(int val) pushes the element val onto the stack.
void pop() removes the element on the top of the stack.
int top() gets the top element of the stack.
int getMin() retrieves the minimum element in the stack.
You must implement a solution with O(1) time complexity for each function.