Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyQueue = errors.New("queue is empty")
ErrQueue is for error if queue is empty.
View Source
var ErrEmptyStack = errors.New("stack is empty")
ErrStack is error if stack is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
LinkedList container.
func NewLinkedList ¶
func NewLinkedList() *LinkedList
NewLinkedList : Create a new LinkedList object whose root is nil.
func (*LinkedList) Insert ¶
func (list *LinkedList) Insert(data interface{})
Insert : inserting new item to linked-list.
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue Data Container
Click to show internal directories.
Click to hide internal directories.