Queue with 2 stacks
I must implement a queue with 2 stacks (enqueue and dequeue) in O(1) time with amortized analysis in java. 


How can i do?
Queue with 2 stacks
===

I must implement a queue with 2 stacks (enqueue and dequeue) in O(1) time with amortized analysis in java. 


How can i do?