_04_doubly_linked_list

package
v0.0.0-...-6d07767 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoublyLinkedList

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

双向链表

func NewDoublyLinkedList

func NewDoublyLinkedList() *DoublyLinkedList

func (*DoublyLinkedList) Append

func (this *DoublyLinkedList) Append(element interface{})

func (*DoublyLinkedList) Delete

func (this *DoublyLinkedList) Delete(index int) interface{}

func (*DoublyLinkedList) Get

func (this *DoublyLinkedList) Get(index int) *Node

func (*DoublyLinkedList) Insert

func (this *DoublyLinkedList) Insert(index int, element interface{})

func (*DoublyLinkedList) Print

func (this *DoublyLinkedList) Print()

打印链表结构

@receiver this

type DoublyLinkedListInterface

type DoublyLinkedListInterface interface {
	Append(interface{})
	Insert(int, interface{})
	Delete(int) interface{}
	Print()
	Get(int) *Node
}

type Node

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

Jump to

Keyboard shortcuts

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