dsa2 min read
Meeting Rooms II
Find minimum conference rooms required by tracking room end times with a min-heap of ongoing meeting endings.
Read →
webcoderspeed.com
1276 articles
Find minimum conference rooms required by tracking room end times with a min-heap of ongoing meeting endings.
Find minimum cost to connect all sticks by greedily always merging the two shortest sticks first.
Maximize capital after k IPO investments by greedily picking the highest profit project among affordable ones.
Check if a car can pick up all passengers by processing start/end events with a sorted timeline or heap.
Greedily use ladders for the largest climbs and bricks for smaller gaps, managed with a min-heap of ladder sizes.