Class MyQueue
java.lang.Object
g0201_0300.s0232_implement_queue_using_stacks.MyQueue
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MyQueue
public MyQueue()
-
-
Method Details
-
push
public void push(int x) -
pop
public int pop() -
peek
public int peek() -
empty
public boolean empty()
-