linkedlist

package
v0.0.0-...-1ed9750 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 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 List

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

List : the basic data structure to operate on the linked list

func NewList

func NewList(head *Node) *List

NewList : Constructor

func (*List) AddNode

func (l *List) AddNode(value interface{})

func (*List) PairWiseSwap

func (l *List) PairWiseSwap()

func (*List) Print

func (l *List) Print() string

func (*List) RemoveNode

func (l *List) RemoveNode(value interface{})

func (*List) Reverse

func (l *List) Reverse()

func (*List) Search

func (l *List) Search(value interface{}) *Node

type Node

type Node struct {
	Value interface{}
	Next  *Node
}

func NewNode

func NewNode(value interface{}) *Node

func (*Node) Print

func (n *Node) Print() string

Jump to

Keyboard shortcuts

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