Ad
  • Custom User Avatar

    I ran into the issue with complex number. It was just because the first test is for -1 and you can't take the square root of a negative number. That's why I ended up checking for a negative a number and returning False. The solution we're under also checked that n was positive before returning True

  • Custom User Avatar

    more!!! more!!!!!!