you give integer array bloomDay integer m integer kYou want m bouquet to bouquet need use k adjacent flower gardenthe garden consist n flower ith flower bloom bloomDayi exactly bouquetreturn minimum number day need wait able m bouquet garden if impossible m bouquet return 1 example 1input bloomDay 1103102 m 3 k 1output 3explanation let happen day x mean flower bloom _ mean flower bloom gardenWe need 3 bouquet contain 1 flowerafter day 1 x _ _ _ _ bouquetafter day 2 x _ _ _ x bouquetsafter day 3 x _ x _ x 3 bouquet the answer 3example 2input bloomDay 1103102 m 3 k 2output 1explanation we need 3 bouquet 2 flower mean need 6 flower we 5 flower impossible need bouquet return 1example 3input bloomDay 77771277 m 2 k 3output 12Explanation we need 2 bouquet 3 flowershere garden 7 12 daysAfter day 7 x x x x _ x xWe bouquet flower bloom we bouquet flower bloom adjacentAfter day 12 x x x x x x xIt obvious bouquet different way ConstraintsbloomDaylength n1 n 1051 bloomDayi 1091 m 1061 k n