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