You are viewing a single comment's thread. Return to all comments →
Python solution
def utopianTree(n): cont = 0 for i in range(n+1): if (i % 2) == 0: cont+=1 else: cont*=2 return cont
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 →
Python solution