https://leetcode.com/problems/magnetic-force-between-two-balls/description/
Max shortest distance between
Max shortest distance between
m
positions #medium #binary_search👍3
https://leetcode.com/problems/find-k-th-smallest-pair-distance/description/
`k`th smallest pairs diff in array #hard #binary_search #two_pointers
`k`th smallest pairs diff in array #hard #binary_search #two_pointers
👍1
https://leetcode.com/problems/my-calendar-i/description/
Insert non-intersection interval #medium #binary_search
Insert non-intersection interval #medium #binary_search
👍3
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/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/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/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
Max positive count or negative count #easy #binary_search
https://leetcode.com/problems/maximum-count-of-positive-integer-and-negative-integer/description/
https://leetcode.com/problems/maximum-count-of-positive-integer-and-negative-integer/description/
👍1🔥1
Distribute candies to k equal buckets #medium #binary_search
https://leetcode.com/problems/maximum-candies-allocated-to-k-children/description/
https://leetcode.com/problems/maximum-candies-allocated-to-k-children/description/
👍1🔥1
Min-max of non-adjucents in array #medium #binary_search
https://leetcode.com/problems/house-robber-iv/description/
https://leetcode.com/problems/house-robber-iv/description/
🔥2👍1
Min rank[i] * count^2 to fix all cars #medium #binary_search #heap
https://leetcode.com/problems/minimum-time-to-repair-cars/description
https://leetcode.com/problems/minimum-time-to-repair-cars/description
👍3
Tasks can be done by workers with pills #hard #binary_search
https://leetcode.com/problems/maximum-number-of-tasks-you-can-assign/description
https://leetcode.com/problems/maximum-number-of-tasks-you-can-assign/description
👍3
# 13.06.2025
[2616. Minimize the Maximum Difference of Pairs](https://leetcode.com/problems/minimize-the-maximum-difference-of-pairs/description/) medium
Min max diffs non-overlapped pairs #medium #binary_search
[2616. Minimize the Maximum Difference of Pairs](https://leetcode.com/problems/minimize-the-maximum-difference-of-pairs/description/) medium
Min max diffs non-overlapped pairs #medium #binary_search
👍3
# 25.06.2025
[2040. Kth Smallest Product of Two Sorted Arrays](https://leetcode.com/problems/kth-smallest-product-of-two-sorted-arrays/description/) hard
K-th increasing product from two arrays #hard #binary_search
[2040. Kth Smallest Product of Two Sorted Arrays](https://leetcode.com/problems/kth-smallest-product-of-two-sorted-arrays/description/) hard
K-th increasing product from two arrays #hard #binary_search
👍2
# 29.06.2025
[1498. Number of Subsequences That Satisfy the Given Sum Condition](https://leetcode.com/problems/number-of-subsequences-that-satisfy-the-given-sum-condition/description/) medium
Subsequencies target in 0..min+max #medium #binary_search #two_pointers
[1498. Number of Subsequences That Satisfy the Given Sum Condition](https://leetcode.com/problems/number-of-subsequences-that-satisfy-the-given-sum-condition/description/) medium
Subsequencies target in 0..min+max #medium #binary_search #two_pointers
👍2
# 8.07.2025
[1751. Maximum Number of Events That Can Be Attended II](https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended-ii/description) hard
Max top k valued intervals #hard #binary_search #dp
[1751. Maximum Number of Events That Can Be Attended II](https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended-ii/description) hard
Max top k valued intervals #hard #binary_search #dp
👍1