Hari and plants
CodeChefOpen on judge ↗
Hari is a first year mechanical student who lives in New York. He is very conscious about his health and hence exercises everyday in the morning with the rising sun near the park. On a certain day he arrives at the park a little late and notices that some of the trees are not blooming because of improper sunlight. He wants to know how many plants are blooming given the heights and position of the
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.
Sign in to chat with the tutor and save your progress.
Sign in to start