No need to check int overflow.


  • 0
    S

    Any integer palindrom is already valid, so if reverted number overflows, it is not palindrom in any case.
    So, it is just redundant logic to check overflow :)


Log in to reply
 

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