queue

package
v0.0.0-...-619039e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

队列

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CircularQueue

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

CircularQueue 循环队列

func NewCircularQueue

func NewCircularQueue(capacity int) *CircularQueue

func (*CircularQueue) Dequeue

func (cq *CircularQueue) Dequeue() (int, bool)

func (*CircularQueue) Enqueue

func (cq *CircularQueue) Enqueue(value int) bool

func (*CircularQueue) Front

func (cq *CircularQueue) Front() (int, bool)

func (*CircularQueue) IsEmpty

func (cq *CircularQueue) IsEmpty() bool

func (*CircularQueue) IsFull

func (cq *CircularQueue) IsFull() bool

Jump to

Keyboard shortcuts

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