← Samsung questions

Implement Queue Using Two Stacks

Filed under Samsung · Also reported at Accolite, Ciena, Citi, CouponDunia, Deutsche Bank, Hitachi Consulting, MakeMyTrip, MAQ Software and 5 more

Implement a First-In-First-Out (FIFO) queue using exactly two Last-In-First-Out (LIFO) stacks. The implementation should support push, pop, peek, and empty operations.

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

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