Documentation
¶
Index ¶
- func NewStack() stack.Stack
- type LinkedList
- func (l *LinkedList) Add(index int, e interface{})
- func (l *LinkedList) AddFirst(e interface{})
- func (l *LinkedList) AddLast(e interface{})
- func (l *LinkedList) Contains(e interface{}) bool
- func (l *LinkedList) Get(index int) interface{}
- func (l *LinkedList) GetFirst() interface{}
- func (l *LinkedList) GetLast() interface{}
- func (l *LinkedList) IsEmpty() bool
- func (l *LinkedList) Len() int
- func (l *LinkedList) Remove(index int) interface{}
- func (l *LinkedList) RemoveFirst() interface{}
- func (l *LinkedList) RemoveLast() interface{}
- func (l *LinkedList) Set(index int, e interface{})
- func (l *LinkedList) String() string
- type LinkedListStack
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
func NewLinkedList ¶
func NewLinkedList() *LinkedList
func (*LinkedList) Contains ¶
func (l *LinkedList) Contains(e interface{}) bool
func (*LinkedList) GetFirst ¶
func (l *LinkedList) GetFirst() interface{}
func (*LinkedList) GetLast ¶
func (l *LinkedList) GetLast() interface{}
func (*LinkedList) IsEmpty ¶
func (l *LinkedList) IsEmpty() bool
func (*LinkedList) Len ¶
func (l *LinkedList) Len() int
func (*LinkedList) Remove ¶
func (l *LinkedList) Remove(index int) interface{}
func (*LinkedList) RemoveFirst ¶
func (l *LinkedList) RemoveFirst() interface{}
func (*LinkedList) RemoveLast ¶
func (l *LinkedList) RemoveLast() interface{}
func (*LinkedList) Set ¶
func (l *LinkedList) Set(index int, e interface{})
func (*LinkedList) String ¶
func (l *LinkedList) String() string
type LinkedListStack ¶
type LinkedListStack struct {
// contains filtered or unexported fields
}
func (*LinkedListStack) IsEmpty ¶
func (l *LinkedListStack) IsEmpty() bool
func (*LinkedListStack) Len ¶
func (l *LinkedListStack) Len() int
func (*LinkedListStack) Peek ¶
func (l *LinkedListStack) Peek() interface{}
func (*LinkedListStack) Pop ¶
func (l *LinkedListStack) Pop() interface{}
func (*LinkedListStack) Push ¶
func (l *LinkedListStack) Push(e interface{})
func (*LinkedListStack) String ¶
func (l *LinkedListStack) String() string
Click to show internal directories.
Click to hide internal directories.