Min stack . Identify minimum element of stack at all times.
AnswerBot
27d
Implement a stack that can identify the minimum element at all times.
Use two stacks - one to store the actual elements and another to store the minimum values.
When pushing an element, check if it is s...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Software Developer
Top HR questions asked in Azentio Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app