Documentation
¶
Index ¶
- type DoublyLinkedList
- func (ll *DoublyLinkedList) ContainsNodeWithValue(value int) bool
- func (ll *DoublyLinkedList) InsertAfter(node, nodeToInsert *Node)
- func (ll *DoublyLinkedList) InsertAtPosition(position int, nodeToInsert *Node)
- func (ll *DoublyLinkedList) InsertBefore(node, nodeToInsert *Node)
- func (ll *DoublyLinkedList) Remove(node *Node)
- func (ll *DoublyLinkedList) RemoveNodesWithValue(value int)
- func (ll *DoublyLinkedList) RemoveTail()
- func (ll *DoublyLinkedList) SetHead(node *Node)
- func (ll *DoublyLinkedList) SetHeadTo(node *Node)
- func (ll *DoublyLinkedList) SetTail(node *Node)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoublyLinkedList ¶
type DoublyLinkedList struct {
Head, Tail *Node
}
func NewDoublyLinkedList ¶
func NewDoublyLinkedList() *DoublyLinkedList
func (*DoublyLinkedList) ContainsNodeWithValue ¶
func (ll *DoublyLinkedList) ContainsNodeWithValue(value int) bool
func (*DoublyLinkedList) InsertAfter ¶
func (ll *DoublyLinkedList) InsertAfter(node, nodeToInsert *Node)
func (*DoublyLinkedList) InsertAtPosition ¶
func (ll *DoublyLinkedList) InsertAtPosition(position int, nodeToInsert *Node)
func (*DoublyLinkedList) InsertBefore ¶
func (ll *DoublyLinkedList) InsertBefore(node, nodeToInsert *Node)
func (*DoublyLinkedList) Remove ¶
func (ll *DoublyLinkedList) Remove(node *Node)
func (*DoublyLinkedList) RemoveNodesWithValue ¶
func (ll *DoublyLinkedList) RemoveNodesWithValue(value int)
func (*DoublyLinkedList) RemoveTail ¶
func (ll *DoublyLinkedList) RemoveTail()
func (*DoublyLinkedList) SetHead ¶
func (ll *DoublyLinkedList) SetHead(node *Node)
func (*DoublyLinkedList) SetHeadTo ¶
func (ll *DoublyLinkedList) SetHeadTo(node *Node)
func (*DoublyLinkedList) SetTail ¶
func (ll *DoublyLinkedList) SetTail(node *Node)
Click to show internal directories.
Click to hide internal directories.