currentDay
to 0, which will keep track of the current day during the planting process.latestBloomDay
to 0, which will keep track of the latest day any flower blooms.currentDay
by the plant time of the current seed.
b. Calculate the bloom day for the current seed as currentDay + growTime
.
c. Update latestBloomDay
to be the maximum of its current value and the bloom day of the current seed.latestBloomDay
as the earliest day where all seeds are blooming.