← Oracle questions

Implement a queue using stacks

Filed under Oracle · Also reported at Cisco, Infoedge, MTX, PayPal, PharmEasy, SAP Ariba

Implement a first-in, first-out (FIFO) queue using only two stacks. The implemented queue should support all standard queue operations (push, peek, pop, and empty).

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 Oracle questions

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