Ad
  • Custom User Avatar

    def power_of_two( n ): return n > 0 and (n&(n-1)) == 0
    would fix that and still be faster, I cant get the submission to change for some reason though