Domanda di colloquio di Jane Street

Implement a priority queue using a stack.

Risposte di colloquio

Anonimo

28 feb 2014

Are you sure he asked you to use only one stack?

1

Anonimo

30 mag 2017

You can utilize the call stack as your second stack by using recursion.