Search⌘ K
AI Features

Minimum Number of Days to Make m Bouquets

Try to solve the Minimum Number of Days to Make m Bouquets problem.

We'll cover the following...

Statement

You are given an integer array bloomDay, where bloomDay[i] is the day the ith flower blooms.

You want to make exactly m bouquets. Each bouquet must consist of exactly k flowers that are adjacent in the array, and each flower can be used in at most one bouquet.

Return the minimum day such that it is possible to make m bouquets by that day. If it is impossible to make m bouquets, return ...