Hi,
I'm really stuck with this analyse of amortize cost exercise :
---------------
Show how to implement a queue with two stacks such that both Enqueue and Dequeue
takes amortized time
O(1)
Can you help me please?
Thanks
I'm really stuck with this analyse of amortize cost exercise :
---------------
Show how to implement a queue with two stacks such that both Enqueue and Dequeue
takes amortized time
O(1)
Can you help me please?
Thanks
Comment