if n == 2^31 (2147483648), the fn should return true. However, when running a custom case, the LeetCode algorithm returns false. Seems like a bug?
there is no int n == 2^31. Integer.MAX_VALUE = 2^31 - 1.
D_shaw is right!
Thanks - this clarifies things in a sense... I was writing this in JS ... so no 'int' type per se
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.