← All problemsSign in

Himalayan Bamboo

The Himalayan Bamboo goes through 2 cycles of growth every year. Each spring, it doubles in height. Each summer, its height increases by 1 meter. Manan plants a Himalayan Bamboo sapling with a height of 1 meter at the onset of spring. How tall will his tree be after N growth cycles?. Input The first line contains an integer, T, the number of test cases. T subsequent lines each contain an int

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