https://leetcode.com/problems/adding-spaces-to-a-string/description/
Insert spaces into string #medium
Insert spaces into string #medium
👍3
https://leetcode.com/problems/make-string-a-subsequence-using-cyclic-increments/description/
Increase some chars once to make a subsequence #medium
Increase some chars once to make a subsequence #medium
👍3
https://leetcode.com/problems/move-pieces-to-obtain-a-string/description/
Move
Move
L
left and R
right to match strings #medium👍2
https://leetcode.com/problems/maximum-number-of-integers-to-choose-from-a-range-i/description/
Sum
Sum
1..n
excluding banned
until maxSum
#medium👍2
https://leetcode.com/problems/minimum-limit-of-balls-in-a-bag/description/
Max number after at most
Max number after at most
maxOperations
of splitting #medium #binary_search👍2
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