https://leetcode.com/problems/two-best-non-overlapping-events/description/
Max two non-overlapping intervals #medium #binary_search
Max two non-overlapping intervals #medium #binary_search
👍2
https://leetcode.com/problems/special-array-ii/description/
Queries is all adjucents parity differ [i..j] #medium #two_pointers
Queries is all adjucents parity differ [i..j] #medium #two_pointers
👍1
https://leetcode.com/problems/find-longest-special-substring-that-occurs-thrice-i/description/
Max same-char 3-windows length #medium #sliding_window
Max same-char 3-windows length #medium #sliding_window
👍2
https://leetcode.com/problems/maximum-beauty-of-an-array-after-applying-operation/description/
Max equal nums after adjusting to [-k..+k] #medium #binary_search #line_sweep
Max equal nums after adjusting to [-k..+k] #medium #binary_search #line_sweep
👍3
https://leetcode.com/problems/take-gifts-from-the-richest-pile/description/
Sum after
Sum after
k-Sqrt
of tops in array #easy👍3
https://leetcode.com/problems/find-score-of-an-array-after-marking-all-elements/description/
Sum of minimums in order excluding siblings #medium #monotonic_stack
Sum of minimums in order excluding siblings #medium #monotonic_stack
👍3
https://leetcode.com/problems/continuous-subarrays/description/
Count subarrays with difference <= 2 #medium #monotonic_queue #tree_set
Count subarrays with difference <= 2 #medium #monotonic_queue #tree_set
🔥2👍1
https://leetcode.com/problems/maximum-average-pass-ratio/description/
Arrange
Arrange
passed
students to improve average score #medium #heap👍2
https://leetcode.com/problems/construct-string-with-repeat-limit/description/
Max lexical ordered with
Max lexical ordered with
repeat_limit
string #medium #bucket_sort👍4
https://leetcode.com/problems/final-prices-with-a-special-discount-in-a-shop/description/
Subtract next smaller value #easy #monotonic_stack
Subtract next smaller value #easy #monotonic_stack
👍2
https://leetcode.com/problems/max-chunks-to-make-sorted/description/
Maximum independent chunks to merge-sort array #medium
Maximum independent chunks to merge-sort array #medium
👍2
https://leetcode.com/problems/reverse-odd-levels-of-binary-tree/description/
Odd-levels reversal in a perfect tree #medium #dfs #bfs #tree
Odd-levels reversal in a perfect tree #medium #dfs #bfs #tree
👍2
https://leetcode.com/problems/maximum-number-of-k-divisible-components/description/
Max connected components divisible by
Max connected components divisible by
k
in graph #hard #toposort👍3
https://leetcode.com/problems/find-building-where-alice-and-bob-can-meet/description/
Common indices t, h[t] > h[a], h[t] > h[b] for queries q[][a,b] #hard #monotonic_stack
Common indices t, h[t] > h[a], h[t] > h[b] for queries q[][a,b] #hard #monotonic_stack
👍3
https://leetcode.com/problems/minimum-number-of-operations-to-sort-a-binary-tree-by-level/description/
Min swaps to sort tree layers #medium #cycle-sort #bfs
Min swaps to sort tree layers #medium #cycle-sort #bfs
👍3
https://leetcode.com/problems/find-minimum-diameter-after-merging-two-trees/description/
Diameter of 2 connected trees #hard #graph #toposort
Diameter of 2 connected trees #hard #graph #toposort
👍4
https://leetcode.com/problems/target-sum/description/
Count signs permutations to sum equal target #medium #dynamic_programming
Count signs permutations to sum equal target #medium #dynamic_programming
👍1
https://leetcode.com/problems/best-sightseeing-pair/description/
Max (a[i] + a[j] + i - j), i > j #medium #arithmetics
Max (a[i] + a[j] + i - j), i > j #medium #arithmetics
👍3
https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/description/
3 max non-intersecting intervals #hard #dynamic_programming #sliding_window
3 max non-intersecting intervals #hard #dynamic_programming #sliding_window
👍2