Documentation ¶
Index ¶
- type Node
- func (n *Node[K, V]) Append(node *Node[K, V])
- func (n *Node[K, V]) InOrder(f func(node *Node[K, V]))
- func (n *Node[K, V]) PostOrder(f func(node *Node[K, V]))
- func (n *Node[K, V]) PreOrder(f func(node *Node[K, V]))
- func (n *Node[K, V]) Remove(key K) *Node[K, V]
- func (n *Node[K, V]) Search(key K) (*Node[K, V], bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node[K, V constraints.Ordered] struct { Key K Value V Left, Right *Node[K, V] }
Click to show internal directories.
Click to hide internal directories.