queue

package
v0.0.0-...-db1a295 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deque

type Deque interface {
	Len() int
	Head() interface{}
	Tail() interface{}
	Empty() bool
	LAppend(x interface{}) bool
	Append(x interface{}) bool
	LPop() (interface{}, bool)
	Pop() (interface{}, bool)
}

func NewDeque

func NewDeque(cap int) Deque

NewDeque 如果指定了容量则选择循环队列 否则选择双端队列

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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