_13_circular_queue

package
v0.0.0-...-6d07767 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 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 CircularQueue

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

func NewCircularQueue

func NewCircularQueue(capacity int) *CircularQueue

初始化一个循环队列

@param capacity
@return *CircularQueue

func (*CircularQueue) DeQueue

func (this *CircularQueue) DeQueue() interface{}

func (*CircularQueue) EnQueue

func (this *CircularQueue) EnQueue(element interface{})

func (*CircularQueue) IsFull

func (this *CircularQueue) IsFull() bool

判断队列是否已满

@receiver this
@return bool

Jump to

Keyboard shortcuts

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