btree

package
v0.0.0-...-4d3ad75 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a, b int) int

Types

type Tree

type Tree struct {
	Right *Tree
	Left  *Tree
	Value int
	Count int
}

func (*Tree) Equal

func (t *Tree) Equal(s *Tree) bool

func (*Tree) Put

func (t *Tree) Put(val int)

func (*Tree) Size

func (t *Tree) Size() int

func (*Tree) Values

func (t *Tree) Values() []int

func (*Tree) ValuesStream

func (t *Tree) ValuesStream(out chan int)

Jump to

Keyboard shortcuts

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