_3_list_node

package
v0.0.0-...-b03bf0d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 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 CQueue

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

func Constructor

func Constructor() CQueue

func (*CQueue) AppendTail

func (this *CQueue) AppendTail(value int)

func (*CQueue) DeleteHead

func (this *CQueue) DeleteHead() int

type ListNode

type ListNode struct {
	Next *ListNode
	Val  int
}

func NewDefaultListNode

func NewDefaultListNode() *ListNode

func NewListNode

func NewListNode(val int) *ListNode

func (*ListNode) AddLastNode

func (node *ListNode) AddLastNode(val int)

添加最后一个节点

func (*ListNode) DeleteNode

func (node *ListNode) DeleteNode()

O(1)

func (*ListNode) ReverseList

func (node *ListNode) ReverseList() *ListNode

pre 1 -> 3 -> 2 -> NULL null<-pre cur->next null<-1<-pre<-cur

func (*ListNode) ShowListNode

func (node *ListNode) ShowListNode()

type Node

type Node struct {
	Val    int
	Next   *Node
	Random *Node
}

type TreeNode

type TreeNode struct {
	Val   int
	Left  *TreeNode
	Right *TreeNode
}

tree

Jump to

Keyboard shortcuts

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