← Amazon questions
CodingReported in a candidate post, Jul 2025

Implement queue using stacks

Filed under Amazon · Also reported at BNY Mellon, Danske IT, Morgan Stanley, Optum (UnitedHealth Group), Paytm, Salesforce, SAP, Synopsys and 1 more

Implement a queue using only the push and pop operations of a stack. Provide enqueue(x), which adds an element to the back of the queue, and dequeue(), which removes and returns the element at the…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.