Documentation
¶
Index ¶
- type BinaryTree
- func (tree *BinaryTree) InorderTraversal(subtree *Node, callback func(int))
- func (tree *BinaryTree) InsertItem(i int)
- func (tree *BinaryTree) PostorderTraversal(subtree *Node, callback func(int))
- func (tree *BinaryTree) PreorderTraversal(subtree *Node, callback func(int))
- func (tree *BinaryTree) SearchItem(i int) (*Node, bool)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryTree ¶
type BinaryTree struct {
// contains filtered or unexported fields
}
func (*BinaryTree) InorderTraversal ¶
func (tree *BinaryTree) InorderTraversal(subtree *Node, callback func(int))
func (*BinaryTree) InsertItem ¶
func (tree *BinaryTree) InsertItem(i int)
func (*BinaryTree) PostorderTraversal ¶
func (tree *BinaryTree) PostorderTraversal(subtree *Node, callback func(int))
func (*BinaryTree) PreorderTraversal ¶
func (tree *BinaryTree) PreorderTraversal(subtree *Node, callback func(int))
func (*BinaryTree) SearchItem ¶
func (tree *BinaryTree) SearchItem(i int) (*Node, bool)
Click to show internal directories.
Click to hide internal directories.