** Push element x to the back of queue. */
(x int)
| 25 | |
| 26 | /** Push element x to the back of queue. */ |
| 27 | func (this *MyQueue) Push(x int) { |
| 28 | this.stack = append(this.stack, x) |
| 29 | } |
| 30 | |
| 31 | /** Removes the element from in front of queue and returns that element. */ |
| 32 | func (this *MyQueue) Pop() int { |