Рет қаралды 49
You are given an integer array bloomDay, an integer m and an integer k.
You want to make m bouquets. To make a bouquet, you need to use k adjacent flowers from the garden.
The garden consists of n flowers, the ith flower will bloom in the bloomDay[i] and then can be used in exactly one bouquet.
Return the minimum number of days you need to wait to be able to make m bouquets from the garden. If it is impossible to make m bouquets return -1.
#Coding #Programming #Algorithm #DataStructures #BinarySearch #LeetCode #TechTutorial #PythonProgramming #CodingChallenge #Developer #LearnToCode #TechEducation #SoftwareEngineering #ProblemSolving #TechTips #CodingLife #CodeNewbie #TechCommunity #CodeWithMe #ProgrammingLife #CodeDaily #leetcode #hackerrank #codesignal #greeksforgreeks #codechef #topcoder #projecteuler #interviewbit #spoj #atcoder #python #mahchinelearning #artificialintelligence #deeplearning #ai #generativeai #chatgpt #DSA