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

      Source Files