testcase: 2147483647

  • 0

    Actually, I see that 3^20 is 2147483647 which is equal to Integer.MAX then the answer should be true.
    I don't understand why should it be false?

  • 0

    3^20 = 3486784401
    May be you use function that returns Int.MAX when value is greater than Int.MAX (don't use it! =))

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.