Domanda di colloquio di SAP

Implement a Queue using a stack.

Risposta di colloquio

Anonimo

15 gen 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.