Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DisjointSet ¶
type DisjointSet[T comparable] interface { MakeSet(x T) Find(x T) T Union(x, y T) }
type LinkedList ¶
type LinkedList[T any] struct { // contains filtered or unexported fields }
func NewLinkedList ¶
func NewLinkedList[T any]() *LinkedList[T]
func (*LinkedList[T]) Head ¶
func (v *LinkedList[T]) Head() (head T, ok bool)
Head - linked list header element
func (*LinkedList[T]) Pop ¶
func (v *LinkedList[T]) Pop() (head T, ok bool)
Pop - pops element from list
func (*LinkedList[T]) Slice ¶
func (v *LinkedList[T]) Slice() []T
Slice - get type Slice with elements
func (*LinkedList[T]) Tail ¶
func (v *LinkedList[T]) Tail() (tail T, ok bool)
Tail - linked list tail element
Click to show internal directories.
Click to hide internal directories.