Documentation
¶
Index ¶
- func Bfs(bt *BinaryTree) []interface{}
- func Dfs(bt *BinaryTree) []interface{}
- func MidOrderVisit(bt *BinaryTree)
- func PostOrderVisit(bt *BinaryTree)
- func PreOrderVisit(bt *BinaryTree)
- func TraversalList(head *LinkedList)
- type Array
- type BinSequence
- type BinaryTree
- type LinkedList
- type MyHeap
- type MyQueue
- type MyStack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bfs ¶
func Bfs(bt *BinaryTree) []interface{}
func MidOrderVisit ¶
func MidOrderVisit(bt *BinaryTree)
func PostOrderVisit ¶
func PostOrderVisit(bt *BinaryTree)
func PreOrderVisit ¶
func PreOrderVisit(bt *BinaryTree)
func TraversalList ¶
func TraversalList(head *LinkedList)
Types ¶
type BinSequence ¶
type BinSequence []interface{}
type BinaryTree ¶
type BinaryTree struct {
Left, Right *BinaryTree
Value interface{}
}
type LinkedList ¶
type LinkedList struct {
NodeData interface{}
NextNode *LinkedList
}
func Del ¶
func Del(data interface{}, head *LinkedList) *LinkedList
func Ins ¶
func Ins(data interface{}, head *LinkedList) *LinkedList
func Rev ¶
func Rev(head *LinkedList) *LinkedList
Click to show internal directories.
Click to hide internal directories.