Minimum Number of Days to Make m Bouquets
MediumLeetCodeBinary Search on Answer
Approach hintTry it first, then revealHide
If the bouquets can be made by day d, they can be made on any later day. For a candidate day, scan runs of adjacent bloomed flowers and take run / k bouquets from each; return -1 when m * k > n.