Suppose we have two stacks and no other temporary variable.
Is to possible to “construct” a queue data structure using only the two stacks?
Suppose we have two stacks and no other temporary variable.
Is to possible to “construct” a queue data structure using only the two stacks?