You are viewing a single comment's thread. Return to all comments →
With python3
def utopianTree(n): if n < 3: return n + 1 if n % 2 == 0: return (utopianTree(n - 2) * 2) + 1 else: return (utopianTree(n - 2) + 1) * 2
Utopian Tree
You are viewing a single comment's thread. Return to all comments →
With python3