Suppose we have two stacks and no other temporary variable.

Is to possible to “construct” a queue data structure using only the two stacks?

21 Answers
21

Leave a Reply

Your email address will not be published. Required fields are marked *