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
https://leetcode.com/problems/minimum-total-distance-traveled/description/
Min robots[x] travel to factories[x,capacity] #hard #dynamic_programming #sorting
Min robots[x] travel to factories[x,capacity] #hard #dynamic_programming #sorting
👍2
https://leetcode.com/problems/delete-characters-to-make-fancy-string/description/
Filter 3+ repeating chars from string #easy
Filter 3+ repeating chars from string #easy
👍2
https://leetcode.com/problems/rotate-string/description/
Is string rotated
Is string rotated
goal
? #easy #kmp #rolling-hash👍2
https://leetcode.com/problems/string-compression-iii/description/
Compress repeating chars in string #medium #two_pointers
Compress repeating chars in string #medium #two_pointers
👍2
https://leetcode.com/problems/minimum-number-of-changes-to-make-binary-string-beautiful/description/
Min changes to make even-sized
Min changes to make even-sized
0
and 1
#medium👍2
https://leetcode.com/problems/find-if-array-can-be-sorted/description/
Can array be sorted by adjacent swap same-1-bits-nums #medium
Can array be sorted by adjacent swap same-1-bits-nums #medium
👍2
https://leetcode.com/problems/maximum-xor-for-each-query/description/
Running
Running
xor
to make 2^k-1
#medium #bit_manipulation👍1
https://leetcode.com/problems/minimum-array-end/description/
`
`
n`th of increasing sequence with `AND[..]=x
` #medium #bit_manipulation👍2
https://leetcode.com/problems/shortest-subarray-with-or-at-least-k-ii/description/
Min subarray with
Min subarray with
OR[..] >= k
#medium #bit_manipulation #sliding_window👍3🤣1
https://leetcode.com/problems/prime-subtraction-operation/description/
Increased sequence by subtracting primes? #medium #binary_search
Increased sequence by subtracting primes? #medium #binary_search
👍3
https://leetcode.com/problems/most-beautiful-item-for-each-query/description/
Queries of
Queries of
max
beauty for q[i]
price #medium #binary_search👍2
https://leetcode.com/problems/count-the-number-of-fair-pairs/description/
Count pairs
Count pairs
a[i] + a[j] in lower..upper
#medium #binary_search #two_pointers👍2
https://leetcode.com/problems/minimized-maximum-of-products-distributed-to-any-store/description/
Min of max of
Min of max of
quantities
spread by n
single-type stores #medium #binary_search #heap👍2
https://leetcode.com/problems/shortest-subarray-to-be-removed-to-make-array-sorted/description/
Min subarray remove to make array sorted #medium #two_pointers
Min subarray remove to make array sorted #medium #two_pointers
👍3
https://leetcode.com/problems/find-the-power-of-k-size-subarrays-i/description/
Tops of consecutive increasing windows #medium #sliding_window
Tops of consecutive increasing windows #medium #sliding_window
👍3
https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/description/
Min subarray with sum at least
Min subarray with sum at least
k
#hard #monotonic_queue #heap👍3
https://leetcode.com/problems/defuse-the-bomb/description/
Next
Next
+-k
window sums #easy #sliding_window👍1
https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k/description/
Max
Max
k
-unique window sum #medium #sliding_window👍3