Filter interviews by
2sum problem with the best time complexity
I applied via LinkedIn and was interviewed in Mar 2023. There were 2 interview rounds.
A stack is a data structure that follows the Last In First Out (LIFO) principle.
Operations of a stack include push (add an element to the top), pop (remove the top element), peek (view the top element without removing it), and isEmpty (check if the stack is empty).
Example: If we push elements 1, 2, and 3 onto a stack, the stack will look like [3, 2, 1].
If we pop the top element, the stack will become [2, 1].
Peeking at ...
Top trending discussions
I applied via Naukri.com and was interviewed before Aug 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed before May 2020. There were 4 interview rounds.
I applied via Job Portal and was interviewed before Dec 2021. There were 3 interview rounds.
based on 4 interview experiences
Difficulty level
Duration
based on 17 reviews
Rating in categories
Software Developer Intern
5
salaries
| ₹2.5 L/yr - ₹6 L/yr |
Software Engineer Intern
3
salaries
| ₹1 L/yr - ₹4.5 L/yr |
Software Development Engineer Intern
3
salaries
| ₹3 L/yr - ₹4 L/yr |
TCS
Accenture
Wipro
Cognizant