Easy20 pts
Utopian Tree
Start 1. n cycles: odd=2x, even=+1. Height after n?
Input
t, then t lines: n
Output
Height per test.
Sample
3 0 1 4
Expected
1 2 7
Loading editor…
Output
No output yet. Run your code to see results.
Start 1. n cycles: odd=2x, even=+1. Height after n?
t, then t lines: n
Height per test.
3 0 1 4
1 2 7
Loading editor…
No output yet. Run your code to see results.