codetop

package
v0.0.0-...-2eaa013 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 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 LRUCache

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

func Constructor

func Constructor(capacity int) LRUCache

func (*LRUCache) AddNode

func (this *LRUCache) AddNode(node *ListNode1)

func (*LRUCache) DeleteNode

func (this *LRUCache) DeleteNode(node *ListNode1)

func (*LRUCache) Get

func (this *LRUCache) Get(key int) int

func (*LRUCache) MoveToHead

func (this *LRUCache) MoveToHead(node *ListNode1)

func (*LRUCache) Put

func (this *LRUCache) Put(key int, value int)

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

type ListNode1

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

type TreeNode

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

Jump to

Keyboard shortcuts

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