doubly_linked_list

package
v0.0.0-...-221e590 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode(value int) *Node

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL