ArrayQueue

package
v0.0.0-...-adc727d Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayQueue

type ArrayQueue struct {
	// contains filtered or unexported fields
}

数组队列的局限性:出队列的操作时间复杂度为 n

func Constructor

func Constructor(capacity int) *ArrayQueue

func (*ArrayQueue) Dequeue

func (this *ArrayQueue) Dequeue() interface{}

func (*ArrayQueue) Enqueue

func (this *ArrayQueue) Enqueue(e interface{})

func (*ArrayQueue) GetCapacity

func (this *ArrayQueue) GetCapacity() int

func (*ArrayQueue) GetFront

func (this *ArrayQueue) GetFront() interface{}

func (*ArrayQueue) GetSize

func (this *ArrayQueue) GetSize() int

func (*ArrayQueue) IsEmpty

func (this *ArrayQueue) IsEmpty() bool

func (*ArrayQueue) String

func (this *ArrayQueue) String() string

Jump to

Keyboard shortcuts

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