If you want to test 2147483648 (10000000000000000000000000000000)
But eclipse tell you it is too large for int
use 1 << 31 instead
When bit shift,I think we should use >>> not >> .When I use >> ,I get a wrong answer.
- What about Integer.MIN_VALUE?
- Use minus: -2147483648.
Bit representation is exactly the same.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.