tree

package
v0.0.0-...-6e2457b Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	Red   nodeColor = false
	Black nodeColor = true
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RBTree

type RBTree[K any, V any] struct {
	// contains filtered or unexported fields
}

RBTree 定义了红黑树的结构

func NewRBTree

func NewRBTree[K any, V any](compare genericgo.Comparator[K]) *RBTree[K, V]

func (*RBTree[K, V]) Size

func (Self *RBTree[K, V]) Size() int

Jump to

Keyboard shortcuts

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