You have two stacks, implement a queue.

Blog

Here's a favorite programming question for interviews that even those long out of college can do. Delightfully, one I hadn't been asked recently, except by Kris and Andy.

You have two stacks, implement a queue.

Add new comment