Matsushita's Blog

Implement a Queue by using two Stacks

Problem

Implement a MyQueue class which implements a queue using two stacks

Source Code