Search
⌘K
Get Premium
Leetcode 225. Implement Stack using Queues
Implement a LIFO stack using only standard queue operations (push to back, pop/peek from front, size, isEmpty), supporting push, pop, top, and empty; the key challenge is to emulate stack order using two queues (follow-up: achieve it with a single queue).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.