Tip 1: Focus on contests after completing DSA.
Tip 2: Try to practice mock interviews.
Tip 3: Make some AI-related projects.
Tip 1: Add AI-related projects.
Tip 2: Try to include your key responsibilities in your projects.
I was asked DSA questions and some questions related to threads and web development.



Input: ‘asteroids’ = [3,-2,4]
Output: [3, 4]
Explanation: The first asteroid will destroy the second asteroid. Hence, after the collision, the state of the asteroids will be [3,4].
You don’t need to print anything. Just implement the given function.
I applied a brute-force approach combined with a greedy strategy, and it worked. It was also the most optimal solution.
They started with an introduction and then moved on to some OS- and web development-related questions from my projects, followed by a DSA question.



getSize: Returns an integer. Gets the current size of the stack
isEmpty: Returns a boolean. Gets whether the stack is empty
push: Returns nothing. Accepts an integer. Puts that integer at the top of the stack
pop: Returns nothing. Removes the top element of the stack. It does nothing if the stack is empty.
getTop: Returns an integer. Gets the top element of the stack. Returns -1 if the stack is empty
I explained the normal operations of a stack and then implemented some additional functions in a class named Stack.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the best case time complexity of Bubble Sort?