leetcode232

package
v0.0.0-...-5261e5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

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
}

MyQueue - struct

func Constructor

func Constructor() MyQueue

Constructor - Initialize your data structure here.

func (*MyQueue) Empty

func (q *MyQueue) Empty() bool

Empty - Returns whether the queue is empty.

func (*MyQueue) Peek

func (q *MyQueue) Peek() int

Peek - Get the front element.

func (*MyQueue) Pop

func (q *MyQueue) Pop() int

Pop - Removes the element from in front of queue and returns that element.

func (*MyQueue) Push

func (q *MyQueue) Push(x int)

Push element x to the back of queue.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL