linklist

package
v0.0.0-...-4ef4814 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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 LinkedList

type LinkedList struct {
	Head *Node
	// contains filtered or unexported fields
}

func NewLinkedList

func NewLinkedList(capacity int) *LinkedList

func (*LinkedList) GetLen

func (L *LinkedList) GetLen() int

func (*LinkedList) Insert

func (l *LinkedList) Insert(val interface{}) error

func (*LinkedList) Remove

func (L *LinkedList) Remove(val interface{}) error

type Node

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

Jump to

Keyboard shortcuts

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