queue

package
v0.0.0-...-24ca9bf Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue[I constraints.Integer, E any, S ~[]E] interface {
	Enqueue(value E)
	Dequeue() E
	Peek() E
	Contains(value E) bool
	Size() I
}

Queue is a FIFO sequential access data structure. Access O(n) Search O(n) * Insert O(1) * Delete O(1)

Jump to

Keyboard shortcuts

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