Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deque ¶
Deque is a double-ended queue. Values can be added and removed from both the front and back.
type PeekableDeque ¶
type PeekableDeque[T any] interface { PeekableQueue[T] PeekableStack[T] }
PeekableDeque is a deque that allows peeking at both the front and back values.
type PeekableQueue ¶
type PeekableQueue[T any] interface { Queue[T] PeekFront() T // PeekFront returns the value at the front of the queue without removing it. }
PeekableQueue is a queue that allows peeking at the front value.
type PeekableStack ¶
type PeekableStack[T any] interface { Stack[T] PeekBack() T // PeekBack returns the value at the back of the stack without removing it. }
PeekableStack is a stack that allows peeking at the back value.
Click to show internal directories.
Click to hide internal directories.