tree

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrettyString

func PrettyString(str string) (string, error)

Types

type Gap

type Gap struct {
	Min int `json:"Min"`
	Max int `json:"Max"`
}

func (Gap) Length

func (g Gap) Length() int

func (Gap) String

func (g Gap) String() string

type Node

type Node struct {
	Min int   `json:"Min"`
	Max int   `json:"Max"`
	L   *Node `json:"L"`
	R   *Node `json:"R"`
	// contains filtered or unexported fields
}

func InsertInt

func InsertInt(n *Node, v int) *Node

func (*Node) FindMax

func (n *Node) FindMax() (int, bool)

func (*Node) FindMin

func (n *Node) FindMin() (int, bool)

func (*Node) Gaps

func (n *Node) Gaps() []Gap

func (Node) String

func (n Node) String() string

Jump to

Keyboard shortcuts

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