flâneur — a map of the web's best reading

tree package - golang.org/x/tour/tree - Go Packages

pkg.go.dev · 112 words · saved by 1 readers

Common problems companies solve with Go Stories about how and why companies use Go How Go can help keep you secure by default Tips for writing clear, performant, and idiomatic Go code A complete introduction to building software with Go Reference documentation for Go's standard library Learn what's new in each Go release Videos from prior events Meet other local Go developers Learn and network with Go developers from around the world The Go project's official blog. Get help and stay informed from Go This package is not in the latest version of its module. This section is empty. This section is empty. This section is empty. A Tree is a binary tree with integer values. New returns a new, random binary tree holding the values k, 2k, ..., 10k.

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.

Explore this link on the map →

related reading