Documentation ¶
Overview ¶
Package datastructure implements some data structure. eg. list, linklist, stack, queue, tree, graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkNode ¶
LinkNode is a linkedlist node, which have a Value and Pre points to previous node, Next points to a next node of the link.
func NewLinkNode ¶
NewLinkNode return a LinkNode pointer
type QueueNode ¶
QueueNode is a node in a queue, which have a Value and Next pointer points to next node in the queue.
func NewQueueNode ¶
NewQueueNode return a QueueNode pointer
type StackNode ¶
StackNode is a node in stack, which have a Value and Next pointer points to next node in the stack.
func NewStackNode ¶
NewStackNode return a StackNode pointer
Click to show internal directories.
Click to hide internal directories.