ds

package
v0.0.0-...-8f20b89 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RED   bool = true
	BLACK bool = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Value dt.AnyT
	// contains filtered or unexported fields
}

type RBTree

type RBTree struct {
	Nil  *Node
	Root *Node
}

func InitRBTree

func InitRBTree() *RBTree

func (*RBTree) Delete

func (tree *RBTree) Delete(key string)

func (*RBTree) Find

func (tree *RBTree) Find(key string) (dt.AnyT, bool)

func (*RBTree) Insert

func (tree *RBTree) Insert(key string, value dt.AnyT)

Jump to

Keyboard shortcuts

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