Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BottomView ¶
func BottomView(root *BinaryTree) []interface{}
BottomView returns the bottom-view of the binary tree.
Types ¶
type BinaryTree ¶
type BinaryTree struct { Value interface{} Left, Right *BinaryTree }
BinaryTree is a binary tree that can hold any value.
Click to show internal directories.
Click to hide internal directories.