Minimum Number of Days to Make m Bouquets
mediumPick m bouquets of k adjacent blooms, minimizing flowering day
Minimum Number of Days to Make m Bouquets
Key Insight
Monotonic predicate: if day d is feasible, any later day is feasible.
Step 1Binary Search Days
m=3, k=1
L
1
010
13
210
32
4Search space: [1..10]
Search days in the min..max bloom range.
1 / 3