Documentation ¶ Index ¶ type MyQueue func Constructor() MyQueue func (this *MyQueue) Empty() bool func (this *MyQueue) Peek() int func (this *MyQueue) Pop() int func (this *MyQueue) Push(x int) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type MyQueue ¶ type MyQueue struct { // contains filtered or unexported fields } func Constructor ¶ func Constructor() MyQueue * Initialize your data structure here. func (*MyQueue) Empty ¶ func (this *MyQueue) Empty() bool * Returns whether the queue is empty. func (*MyQueue) Peek ¶ func (this *MyQueue) Peek() int * Get the front element. func (*MyQueue) Pop ¶ func (this *MyQueue) Pop() int * Removes the element from in front of queue and returns that element. func (*MyQueue) Push ¶ func (this *MyQueue) Push(x int) * Push element x to the back of queue. Source Files ¶ View all Source files implement_queue_using_stacks.go Click to show internal directories. Click to hide internal directories.