hard

package
v0.0.0-...-0471bb1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Counter

func Counter(s string) map[byte]int

Types

type IntHeap

type IntHeap []int

func (IntHeap) Len

func (h IntHeap) Len() int

func (IntHeap) Less

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

func (*IntHeap) Pop

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

func (*IntHeap) Push

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

func (IntHeap) Swap

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

type MedianFinder

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

func Constructor

func Constructor() MedianFinder

func (*MedianFinder) AddNum

func (this *MedianFinder) AddNum(num int)

func (*MedianFinder) FindMedian

func (this *MedianFinder) FindMedian() float64

type Set

type Set map[rune]struct{}

func (*Set) Add

func (set *Set) Add(e rune)

func (Set) Contains

func (set Set) Contains(elem [2]int) bool

func (Set) ToSlice

func (set Set) ToSlice() [][]int

type State

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

type TreeNode

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

type TrieNode

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

func (*TrieNode) Insert

func (trie *TrieNode) Insert(word string)

func (*TrieNode) IsEmpty

func (trie *TrieNode) IsEmpty() bool

func (*TrieNode) Remove

func (trie *TrieNode) Remove(word string) bool

Jump to

Keyboard shortcuts

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