https://leetcode.com/problems/the-number-of-the-smallest-unoccupied-chair/description/
target's
chair number when chairs reused by multiple [arrival, leave]
times #medium #sorting #heap👍3
https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups/description/
Count non-intersecting groups of intervals #medium #heap #sorting
Count non-intersecting groups of intervals #medium #heap #sorting
👍3
https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/description/
Smallest intersection of
Smallest intersection of
k
sorted lists #medium #heap #tree_set👍3❤1
https://leetcode.com/problems/maximal-score-after-applying-k-operations/description/
Replace
Replace
max(arr)
with ceil(max/3)
k
times #medium #heap👍3
https://leetcode.com/problems/separate-black-and-white-balls/description/
Min moves to sort
Min moves to sort
01
string #medium #greedy👍4
https://leetcode.com/problems/longest-happy-string/description/
Longest string of
Longest string of
a
, b
, c
not repeating 3 times #medium #greedy👍3
https://leetcode.com/problems/maximum-swap/description/
Max number after a single digits swap #medium #greedy
Max number after a single digits swap #medium #greedy
👍3
https://leetcode.com/problems/count-number-of-maximum-bitwise-or-subsets/description/
Count subsequences with max bitwise
Count subsequences with max bitwise
or
#medium #backtracking👍4
https://leetcode.com/problems/find-kth-bit-in-nth-binary-string/description/
k`th bit of sequence `bs[i] = bs[i-1] + '1' + rev(inv(bs[i-1]))
#medium #bit_manipulation👍3
https://leetcode.com/problems/parsing-a-boolean-expression/description/
Parse boolean expression #hard #stack #recursion
Parse boolean expression #hard #stack #recursion
👍4
https://leetcode.com/problems/split-a-string-into-the-max-number-of-unique-substrings/description/
Max count of unique split parts #medium #backtrack
Max count of unique split parts #medium #backtrack
👍4
https://leetcode.com/problems/kth-largest-sum-in-a-binary-tree/description/
`k`th largest level-sum in a tree #bfs #heap #quickselect
`k`th largest level-sum in a tree #bfs #heap #quickselect
👍4
https://leetcode.com/problems/cousins-in-binary-tree-ii/description/
Replace Tree's values with cousines sum #medium #bfs
Replace Tree's values with cousines sum #medium #bfs
👍3
https://leetcode.com/problems/flip-equivalent-binary-trees/description/
Are trees flip-equal #medium #recursion #dfs
Are trees flip-equal #medium #recursion #dfs
👍3
https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/description/
Remove empty subfolders #medium #trie #sort
Remove empty subfolders #medium #trie #sort
👍4
https://leetcode.com/problems/height-of-binary-tree-after-subtree-removal-queries/description/
n
new heights by cutting nodes in a Tree #hard #dfs👍3
https://leetcode.com/problems/count-square-submatrices-with-all-ones/description/
Count
Count
1
-filled squares in 2D matrix #medium #dynamic_programming👍4
https://leetcode.com/problems/longest-square-streak-in-an-array/description/
Longest quadratic subset #medium #hashmap #math
Longest quadratic subset #medium #hashmap #math
👍2
https://leetcode.com/problems/maximum-number-of-moves-in-a-grid/description/
Max increasing path from left to right in 2D matrix #medium #dynamic_programming
Max increasing path from left to right in 2D matrix #medium #dynamic_programming
👍2
https://leetcode.com/problems/minimum-number-of-removals-to-make-mountain-array/description/
Min removes to make a mountain #hard #dynamic_programming #binary_search #lis
Min removes to make a mountain #hard #dynamic_programming #binary_search #lis
👍2