https://leetcode.com/problems/number-of-wonderful-substrings/description/
Count substrings with at most one odd frequency #medium #bit_manipulation
Count substrings with at most one odd frequency #medium #bit_manipulation
👍1
https://leetcode.com/problems/reverse-prefix-of-word/description/
Reverse
Reverse
[..ch]
prefix in string #easy👍1
https://leetcode.com/problems/largest-positive-integer-that-exists-with-its-negative/description/
Max number that have its negative in array #easy #two_pointers
Max number that have its negative in array #easy #two_pointers
👍2
https://leetcode.com/problems/boats-to-save-people/description/
Minimum total boats with at most
Minimum total boats with at most
2
people & limit
weight #medium #two_pointers #greedy👍2
https://leetcode.com/problems/delete-node-in-a-linked-list/description/
Delete current node in a Linked List #medium
Delete current node in a Linked List #medium
👍3
https://leetcode.com/problems/remove-nodes-from-linked-list/description/
Make a Linked List non-increasing #medium #linked_list
Make a Linked List non-increasing #medium #linked_list
👍2
https://leetcode.com/problems/double-a-number-represented-as-a-linked-list/description/
Double the number as a Linked List #medium #linked_list
Double the number as a Linked List #medium #linked_list
👍1
https://leetcode.com/problems/relative-ranks/description/
Convert results array to ranks array #easy #sorting
Convert results array to ranks array #easy #sorting
👍1
https://leetcode.com/problems/maximize-happiness-of-selected-children/description/
Sum of
Sum of
k
maximums decreasing each step #medium #sorting #heap #quickselect👍1
https://leetcode.com/problems/k-th-smallest-prime-fraction/description/
k`th `arr[i]/arr[j]
, i < j, arr[i] < arr[j] #medium #heap #binary_search👍1
https://leetcode.com/problems/minimum-cost-to-hire-k-workers/description/
Min cost of
Min cost of
k
workers each doing quality[i]
work for fair rate #hard #heap #sorting👍2
https://leetcode.com/problems/largest-local-values-in-a-matrix/description/
Max pooling by
Max pooling by
3x3
matrix #easy👍2
https://leetcode.com/problems/score-after-flipping-matrix/description/
Max binary-row sum after toggling rows and columns #medium
Max binary-row sum after toggling rows and columns #medium
👍1
https://leetcode.com/problems/path-with-maximum-gold/description/
Max one-way path in matrix #medium #dfs
Max one-way path in matrix #medium #dfs
👍1
https://leetcode.com/problems/find-the-safest-path-in-a-grid/description/
Safest path in a grid with thiefs #medium #bfs #heap
Safest path in a grid with thiefs #medium #bfs #heap
👍1
https://leetcode.com/problems/evaluate-boolean-binary-tree/description/
Evaluate tree where
Evaluate tree where
0/1
is false/true
and 2/3
is or/and
#easy #tree #dfs👍1🔥1
https://leetcode.com/problems/delete-leaves-with-a-given-value/description/
Recursively remove
Recursively remove
target
leafs from the tree #easy #dfs #tree👍1🔥1
https://leetcode.com/problems/distribute-coins-in-binary-tree/description/
Min moves to spread the coins across the tree #medium #dfs #tree
Min moves to spread the coins across the tree #medium #dfs #tree
👍1🔥1
https://leetcode.com/problems/find-the-maximum-sum-of-node-values/description/
Max sum after
Max sum after
xor k
any edges in a tree #hard #math👍2🔥1