tree

package module
v0.2.3-0...-7ced566 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(n1, n2 int) int

Types

type Node

type Node struct {
	Name   string
	Height int
	Left   *Node
	Right  *Node
}

type Tree

type Tree struct {
	Root *Node
	Size int
}

func (*Tree) Find

func (t *Tree) Find(s string, exact bool) (string, error)

func (*Tree) Insert

func (t *Tree) Insert(c *Node)

func (*Tree) Walk

func (t *Tree) Walk()

Jump to

Keyboard shortcuts

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