Tree Growth
CodeChefOpen on judge ↗
We have a Tree, say 'xyz'. It has a continuous growth rate in terms of two cycles per year. When initially the tree is planted, its length is '1'. The division of growth cycles is this way: In cycle1, the tree increases its height by the present height *2 i.e it doubles its height. In cycle2, tree increases its height by 1 i.e present height +1. Now, when the tree is in a year which is a multip
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