algorithm

package
v0.0.0-...-0158116 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenSingleLinkedList

func GenSingleLinkedList[T comparable](l []T) *link.Node[T]

func LinkPrint

func LinkPrint(now *link.Node[int])

func LinkReverse

func LinkReverse(head *link.Node[int]) *link.Node[int]

func NewBinaryTreeMaxDepth

func NewBinaryTreeMaxDepth() *cobra.Command

func NewBinaryTreeMidOrder

func NewBinaryTreeMidOrder() *cobra.Command

func NewBinaryTreePostOrder

func NewBinaryTreePostOrder() *cobra.Command

func NewBinaryTreePreOrder

func NewBinaryTreePreOrder() *cobra.Command

func NewBitOneNum

func NewBitOneNum() *cobra.Command

func NewCalcHammingDistance

func NewCalcHammingDistance() *cobra.Command

func NewCc

func NewCc() *cobra.Command

func NewClimbStair

func NewClimbStair() *cobra.Command

func NewCommand

func NewCommand() *cobra.Command
func NewIntersectLink() *cobra.Command

func NewJudgeBalanceBinaryTree

func NewJudgeBalanceBinaryTree() *cobra.Command

func NewJudgeSymmetricalBinaryTree

func NewJudgeSymmetricalBinaryTree() *cobra.Command

func NewKthFromBottom

func NewKthFromBottom() *cobra.Command

单链表倒数第k个节点

func NewLRUCache

func NewLRUCache() *cobra.Command

func NewOnlyOnceInArray

func NewOnlyOnceInArray() *cobra.Command

func NewReverseBinaryTree

func NewReverseBinaryTree() *cobra.Command
func NewReverseLink() *cobra.Command

单链表反转

Types

type LRUCache

type LRUCache struct {
}

func (*LRUCache) Get

func (lc *LRUCache) Get()

func (*LRUCache) Put

func (lc *LRUCache) Put()

Jump to

Keyboard shortcuts

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