dlinklist

package
v0.0.0-...-c6e1c22 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DLinkedList

type DLinkedList struct {
	Size int
	// contains filtered or unexported fields
}

DLinkedList data structure

func NewLinkedList

func NewLinkedList() *DLinkedList

NewLinkedList constructor

func (*DLinkedList) AddNode

func (c *DLinkedList) AddNode(node *Node)

AddNode adds a new node to the tail of of linked list

func (*DLinkedList) PopTail

func (c *DLinkedList) PopTail() *Node

PopTail pops a node from the beginning of the linked list

func (*DLinkedList) RemoveNode

func (c *DLinkedList) RemoveNode(node *Node)

RemoveNode removes a node

type Node

type Node struct {
	Key   string
	Value string
	Freq  int
	// contains filtered or unexported fields
}

Node data structure

Jump to

Keyboard shortcuts

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