sorts

package
v0.0.0-...-0a075e9 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heap

type Heap []int

func NewHeap

func NewHeap(src sort.IntSlice) Heap

type Tree

type Tree struct {
	Value int
	Nodes []*Tree
}

func NewTree

func NewTree(v int) *Tree

func (*Tree) AddNode

func (a *Tree) AddNode(v int)

func (*Tree) GetIntSlice

func (a *Tree) GetIntSlice() []int

func (*Tree) GetNodeValues

func (a *Tree) GetNodeValues(v []int)

func (*Tree) HasFullNodes

func (a *Tree) HasFullNodes() bool

func (*Tree) ShowValues

func (a *Tree) ShowValues()

func (*Tree) ShowValuesFromBottom

func (a *Tree) ShowValuesFromBottom()

Jump to

Keyboard shortcuts

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