binary

package
v0.0.0-...-5f64d4e Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 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 Node

type Node[K, V constraints.Ordered] struct {
	Key         K
	Value       V
	Left, Right *Node[K, V]
}

func (*Node[K, V]) Append

func (n *Node[K, V]) Append(node *Node[K, V])

func (*Node[K, V]) InOrder

func (n *Node[K, V]) InOrder(f func(node *Node[K, V]))

func (*Node[K, V]) PostOrder

func (n *Node[K, V]) PostOrder(f func(node *Node[K, V]))

func (*Node[K, V]) PreOrder

func (n *Node[K, V]) PreOrder(f func(node *Node[K, V]))

func (*Node[K, V]) Remove

func (n *Node[K, V]) Remove(key K) *Node[K, V]

func (*Node[K, V]) Search

func (n *Node[K, V]) Search(key K) (*Node[K, V], bool)

Jump to

Keyboard shortcuts

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