User Profile
Collapse
-
Generate balanced random bits with an unbalanced random bit generator
What is the expected number of coin flips for getting a head? -
Amortize cost analyse
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
No activity results to display
Show More