tree

package
v0.0.0-...-d850789 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2015 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

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

A Tree is a binary tree with integer values.

func New

func New(k int) *Tree

New returns a new, random binary tree holding the values k, 2k, ..., 10k.

func (*Tree) String

func (t *Tree) String() string

Jump to

Keyboard shortcuts

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