solulubeta
Sign in
Story Problems / Binary search
05.04 · Problem

Earliest Day for the Bouquets

Hard Binary search on the answer (days) Pro

This problem is part of solulu Pro

A garden has flowers in a row; flower i blooms on day bloom[i]. A bouquet needs k adjacent bloomed flowers and each flower can be used in only one bouquet. What is the earliest day on which you can make m bouquets?…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 54 of 94 · updated 2026-10-12