Back to

Package tree

Latest Go to latest

The latest major version is .

Published: May 8, 2020 | License: BSD-3-Clause | Module:


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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier