linkedlist

package
v0.0.0-...-cdc5add Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LinkedListRun

func LinkedListRun()

Types

type LinkedList

type LinkedList interface {
	AddFront(data *interface{})
	GetHead() *Node
	GetData(output chan<- interface{})
}

type Node

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

type SingleLinkedList

type SingleLinkedList struct {
	Head *Node
}

func (*SingleLinkedList) AddFront

func (sll *SingleLinkedList) AddFront(data *interface{})

func (*SingleLinkedList) GetData

func (sll *SingleLinkedList) GetData(output chan<- interface{})

func (*SingleLinkedList) GetHead

func (sll *SingleLinkedList) GetHead() *Node

Jump to

Keyboard shortcuts

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