Documentation ¶ Index ¶ type Tree func New(k int) *Tree func (t *Tree) String() string 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 ¶ View all Source files tree.go Click to show internal directories. Click to hide internal directories.