linkedlist

package
v0.0.0-...-619039e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 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 *ListNode
}

func (*LinkedList) HeadAdd

func (l *LinkedList) HeadAdd(value int)

头插法

func (*LinkedList) Length

func (l *LinkedList) Length() int

func (*LinkedList) Print

func (l *LinkedList) Print()

func (*LinkedList) TailAdd

func (l *LinkedList) TailAdd(value int)

尾插法

type ListNode

type ListNode struct {
	Value int
	Next  *ListNode
}

type ListNodeDouble

type ListNodeDouble struct {
	Val  int
	Next *ListNodeDouble
	Prev *ListNodeDouble
}

func NewListNodeDouble

func NewListNodeDouble(val int) *ListNodeDouble

Directories

Path Synopsis
2

Jump to

Keyboard shortcuts

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