Keywords: range minimum query
Keywords: union find, DSU, graph
Keywords: binary tree, range sum, range minimum, segment change
Difficulty: Medium (8 personal rank)Keywords: stack
Keyword: Stack, Calculator
Difficulty: Medium (1 personal rank)Keyword: Trie, prefix tree, word search
Implement a trie with insert, search, and startsWith methods.
insert
search
startsWith
Keyword: BST, AVL(Adelson-Velsky and Landis) Tree
二元搜尋樹(英語:Binary Search Tree),也稱為有序二元樹(ordered binary tree)或排序二元樹(sorted binary tree),是指一棵空樹或者具有下列性質的二元樹:
Keyword: Graph, vertex, bridge, component, dominator
這是一個詳細紀錄眾多演算法知識的網站,從我初學資結開始至今,都幫助我甚多。
Difficulty: Hard (9 personal rank)Keyword: BIT, segment tree, double-ended queue(deque)
Given a string num…
num
Difficulty: Hard (7 personal rank)Keyword: priority queue
這題早就寫過,但是實隔許久再寫直覺依然是binary insertion。答案雖然簡單,但並不是容易內化的題目。