The description has an assumption: The integer is represented using 32 BITS.
IF UNSIGNED, the largest positive integer is 2^32-1 .
If it is SIGNED:
the highest bit will be taken to represent sign. So largest 2^31 , smallest -2^31
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.