Documentation
¶
Index ¶
- func Abs(x int) int
- func CreateNode(node *LNode, max int)
- func IsNumber(c rune) bool
- func IsOne(n, i int) bool
- func Max(a, b int) int
- func Max3(a, b, c int) int
- func Min(a, b int) int
- func Min3(a, b, c int) int
- func PrintNode(info string, node *LNode)
- func PrintTreeLayer(node *BNode)
- func PrintTreeMidOrder(root *BNode)
- func SwapInt(data []int, x, y int)
- func SwapRune(data []rune, x, y int)
- type AVLNode
- type BNode
- type LNode
- type LinkedQueue
- type LinkedStack
- type Set
- type SliceQueue
- func (p *SliceQueue) DeQueue() interface{}
- func (p *SliceQueue) EnQueue(item interface{})
- func (p *SliceQueue) EnQueueFirst(item interface{})
- func (p *SliceQueue) GetBack() interface{}
- func (p *SliceQueue) GetFront() interface{}
- func (p *SliceQueue) IsEmpty() bool
- func (p *SliceQueue) List() []interface{}
- func (p *SliceQueue) PopBack() interface{}
- func (p *SliceQueue) Remove(item interface{})
- func (p *SliceQueue) Size() int
- type SliceStack
- type TrieNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LinkedQueue ¶
func NewLinkedQueue ¶
func NewLinkedQueue() *LinkedQueue
type LinkedStack ¶
链表所写的stack
func NewLinkedStack ¶
func NewLinkedStack() *LinkedStack
func (*LinkedStack) IsEmpty ¶
func (p *LinkedStack) IsEmpty() bool
func (*LinkedStack) Pop ¶
func (p *LinkedStack) Pop() interface{}
func (*LinkedStack) Push ¶
func (p *LinkedStack) Push(e interface{})
func (*LinkedStack) Size ¶
func (p *LinkedStack) Size() int
func (*LinkedStack) Top ¶
func (p *LinkedStack) Top() interface{}
type SliceQueue ¶
func NewSliceQueue ¶
func NewSliceQueue() *SliceQueue
func (*SliceQueue) List ¶
func (p *SliceQueue) List() []interface{}
type SliceStack ¶
slice所写的stack
func NewSliceStack ¶
func NewSliceStack() *SliceStack
func (*SliceStack) List ¶
func (p *SliceStack) List() []interface{}
Click to show internal directories.
Click to hide internal directories.