You are viewing a single comment's thread. Return to all comments →
In C#
int height = 1; for (int i = 1; i <= n; i++){ height = i % 2 == 1 ? height * 2 : height + 1; } return height;
Seems like cookies are disabled on this browser, please enable them to open this website
Utopian Tree
You are viewing a single comment's thread. Return to all comments →
In C#