Growing
CodeChefOpen on judge ↗
Chef has planted a plant which takes $M$ days to grow completely and daily it's height is growing constantly, but a day comes when it is attacked by an insect and from that day it's height starts to decrease. Chef being busy in planting the new trees, help him in finding out wether the tree has grown completely or not. A tree is said to be grown completely if it's height is growing continuously fo
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