Image illustrating the same An illustration showing the blooming pattern How to approach the problem? On the second day, the third and the fifth flower bloom leaving a flower that is still blooming. So, rather than exaggerating, I will be running through a sample for an input.
The mystery behind K Empty Slots is thus unlocked, or is it? We will be finding the day on which two flowers are blooming with k non-blooming flowers between them. Complexity Analysis What is the blooming condition?.