SAP Interview Question

Implement a Queue using a stack.

Interview Answer

Anonymous

Jan 15, 2019

We use two stacks, with top of each as front and rear end pointers. or if only one stack is required, a length variable could be maintained.