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/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/hand-of-straights/description/
Can array be split into consecutive groups #medium #heap #treemap
Can array be split into consecutive groups #medium #heap #treemap
👍2🔥1
https://leetcode.com/problems/ipo/description/
Max capital by choosing
Max capital by choosing
k
jobs with profits[] & capital[]
given w
on start #hard #heap👍2
https://leetcode.com/problems/range-sum-of-sorted-subarray-sums/description/
Sum of
Sum of
[left..right]
of sorted subarray sums #medium #heap👍3
https://leetcode.com/problems/kth-largest-element-in-a-stream/description/
`k`th largest in a stream of values #easy #heap
`k`th largest in a stream of values #easy #heap
👍2
https://leetcode.com/problems/ugly-number-ii/description/
`n`th number with only [1,2,3,5] multipliers #medium #heap
`n`th number with only [1,2,3,5] multipliers #medium #heap
👍3
https://leetcode.com/problems/the-number-of-the-smallest-unoccupied-chair/description/
target's
chair number when chairs reused by multiple [arrival, leave]
times #medium #sorting #heap👍3
https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups/description/
Count non-intersecting groups of intervals #medium #heap #sorting
Count non-intersecting groups of intervals #medium #heap #sorting
👍3
https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/description/
Smallest intersection of
Smallest intersection of
k
sorted lists #medium #heap #tree_set👍3❤1
https://leetcode.com/problems/maximal-score-after-applying-k-operations/description/
Replace
Replace
max(arr)
with ceil(max/3)
k
times #medium #heap👍3
https://leetcode.com/problems/kth-largest-sum-in-a-binary-tree/description/
`k`th largest level-sum in a tree #bfs #heap #quickselect
`k`th largest level-sum in a tree #bfs #heap #quickselect
👍4
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-with-sum-at-least-k/description/
Min subarray with sum at least
Min subarray with sum at least
k
#hard #monotonic_queue #heap👍3