Loading...
Engaged employer
Implement a stack data structure with O(1) push, pop and access to the largest element.
Anonymous
I used two queues, one for the stack and one to hold largest elements.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.