• + 0 comments

    def utopianTree(n): h = 1 for i in range(n//2): h = h*2+1

    return h if n% 2==0 else h*2