Documentation ¶
Index ¶
- type DoublyLinkedList
- func (l *DoublyLinkedList) AddAfter(nodeValue, newValue int)
- func (l *DoublyLinkedList) AddToHead(value int)
- func (l *DoublyLinkedList) AddToTail(value int)
- func (l *DoublyLinkedList) Iterate()
- func (l *DoublyLinkedList) IterateWithFunc(f func(int))
- func (l *DoublyLinkedList) LastNode() *Node
- func (l *DoublyLinkedList) NodeBetweenValues(firstValue int, secondValue int) *Node
- func (l *DoublyLinkedList) NodeWithValue(value int) *Node
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoublyLinkedList ¶
type DoublyLinkedList struct {
// contains filtered or unexported fields
}
func InitDoublyLinkedList ¶
func InitDoublyLinkedList(value int) *DoublyLinkedList
func NewDoublyLinkedList ¶
func NewDoublyLinkedList() *DoublyLinkedList
func (*DoublyLinkedList) AddAfter ¶
func (l *DoublyLinkedList) AddAfter(nodeValue, newValue int)
func (*DoublyLinkedList) AddToHead ¶
func (l *DoublyLinkedList) AddToHead(value int)
func (*DoublyLinkedList) AddToTail ¶
func (l *DoublyLinkedList) AddToTail(value int)
func (*DoublyLinkedList) Iterate ¶
func (l *DoublyLinkedList) Iterate()
func (*DoublyLinkedList) IterateWithFunc ¶
func (l *DoublyLinkedList) IterateWithFunc(f func(int))
func (*DoublyLinkedList) LastNode ¶
func (l *DoublyLinkedList) LastNode() *Node
func (*DoublyLinkedList) NodeBetweenValues ¶
func (l *DoublyLinkedList) NodeBetweenValues(firstValue int, secondValue int) *Node
func (*DoublyLinkedList) NodeWithValue ¶
func (l *DoublyLinkedList) NodeWithValue(value int) *Node
Click to show internal directories.
Click to hide internal directories.