You are viewing a single comment's thread. Return to all comments →
def utopianTree(n): # Write your code here return 2 ** (math.floor((n + 1) / 2) + 1) - 1 - (n % 2)
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 →