← All problemsSign in

Flower Love

Mr. Laddu Omprakash Chaturvedi (a.k.a L.O.C) just moved in his new house. He love flowers so he wants to plant more flowers in his garden. The garden has N flowers from 1 to N and are arranged in a row. At some places flowers are already present and other places are available. Mr. L.O.C don’t want his flowers to be alone, so a place is good for his flower if there is at least one flower already pr

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start