MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / DoublyEndedQueue

Struct DoublyEndedQueue

structure/deque/deque.go:17–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15var ErrEmptyDequeue = errors.New("DoublyEnded queue is empty, so can't perform this operation")
16
17type DoublyEndedQueue[T any] struct {
18 deque []T
19}
20
21// New returns a new DoublyEndedQueue.
22func New[T any]() *DoublyEndedQueue[T] {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected