You are viewing a single comment's thread. Return to all comments →
here is my solution in javascript:
function utopian(n){ let height = 1; for(let i = 0; i < n; i++){ if(i % 2 === 0){ height *= 2; } else { 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 →
here is my solution in javascript:
}