foundation

package
v0.0.0-...-67fb0f9 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrHeap

type ArrHeap [][2]int

func (ArrHeap) Len

func (h ArrHeap) Len() int

func (ArrHeap) Less

func (h ArrHeap) Less(i, j int) bool

func (*ArrHeap) Pop

func (h *ArrHeap) Pop() interface{}

func (*ArrHeap) Push

func (h *ArrHeap) Push(x interface{})

func (ArrHeap) Swap

func (h ArrHeap) Swap(i, j int)

type BSTIterator

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

no173

func BSTIteratorConstructor

func BSTIteratorConstructor(root *TreeNode) BSTIterator

func (*BSTIterator) HasNext

func (this *BSTIterator) HasNext() bool

func (*BSTIterator) Next

func (this *BSTIterator) Next() int

type Codec

type Codec struct {
}

func CodecConstructor

func CodecConstructor() Codec

type Heap

type Heap []int

func (Heap) Len

func (h Heap) Len() int

func (Heap) Less

func (h Heap) Less(i, j int) bool

func (*Heap) Pop

func (h *Heap) Pop() interface{}

func (*Heap) Push

func (h *Heap) Push(x interface{})

func (Heap) Swap

func (h Heap) Swap(i, j int)

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

type MinStack

type MinStack struct {
	Data []int
	Min  []int
}

no155

func MinStackConstructor

func MinStackConstructor() MinStack

func (*MinStack) GetMin

func (this *MinStack) GetMin() int

func (*MinStack) Pop

func (this *MinStack) Pop()

func (*MinStack) Push

func (this *MinStack) Push(val int)

func (*MinStack) Top

func (this *MinStack) Top() int

type MyHashMap

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

no706

func Constructor

func Constructor() MyHashMap

func (*MyHashMap) Get

func (m *MyHashMap) Get(key int) int

func (*MyHashMap) Put

func (m *MyHashMap) Put(key int, value int)

func (*MyHashMap) Remove

func (m *MyHashMap) Remove(key int)

type MyLinkedList

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

func MyLinkedListConstructor

func MyLinkedListConstructor() MyLinkedList

func (*MyLinkedList) AddAtHead

func (this *MyLinkedList) AddAtHead(val int)

func (*MyLinkedList) AddAtIndex

func (this *MyLinkedList) AddAtIndex(index int, val int)

func (*MyLinkedList) AddAtTail

func (this *MyLinkedList) AddAtTail(val int)

func (*MyLinkedList) DeleteAtIndex

func (this *MyLinkedList) DeleteAtIndex(index int)

func (*MyLinkedList) Get

func (this *MyLinkedList) Get(index int) int

type Node

type Node struct {
	Val  int
	Next *Node
}

type PointHeap

type PointHeap [][]int

func (PointHeap) Len

func (h PointHeap) Len() int

func (PointHeap) Less

func (h PointHeap) Less(i, j int) bool

func (*PointHeap) Pop

func (h *PointHeap) Pop() interface{}

func (*PointHeap) Push

func (h *PointHeap) Push(x interface{})

func (PointHeap) Swap

func (h PointHeap) Swap(i, j int)

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