arrayqueue

package
v0.0.0-...-3b2a8e7 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT 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 (aq *ArrayQueue) Dequeue() interface{}

func (*ArrayQueue) Enqueue

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

func (*ArrayQueue) GetCapacity

func (aq *ArrayQueue) GetCapacity() int

func (*ArrayQueue) GetFront

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

func (*ArrayQueue) GetSize

func (aq *ArrayQueue) GetSize() int

func (*ArrayQueue) IsEmpty

func (aq *ArrayQueue) IsEmpty() bool

func (*ArrayQueue) String

func (aq *ArrayQueue) String() string

Jump to

Keyboard shortcuts

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