Search Results for: Meters
test case, print the height of the utopian tree after cycles. each height must be printed on a new line. sample input sample output explanation there are test cases. in the first case (), the initial height () of the tree remains unchanged. in the second case (), the tree doubles in height and is meters
tall after the spring cycle. in the third case (), the tree doubles its height in spring (, ), then grows a meter in summer (, ), then doubles after the next spring (, ), and grows another meter after summer (, ). thus, at the end of cycles, its height is meters. author dheeraj difficulty easy max score...
https://www.hackerrank.com/challenges/utopian-tree/problem