← Persistent questions

Implement Stack using Queues

Filed under Persistent · Also reported at Altiostar Networks Inc., IDfy, MakeMyTrip, Mindtree, Vymo

The question

Explain how to implement a Last-In-First-Out (LIFO) stack using one or two standard FIFO queue data structures.

No write-up yet. Related questions below have one.

Related Persistent questions

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