Test cases need to be updated (integer overflows dont happen in Python 3)

  • 0

    Per PEP 237 (https://www.python.org/dev/peps/pep-0237/) Python 3's "int" type is not a signed 32 bit integer. In fact, the "int" type has no maximum size.

    Possible solutions:
    Remove python test cases that require returning zeros when a signed 32 bit integer would overflow.
    Specify that the program should return 0 when the reversed number would overflow for a signed 32 bit integer (right now this detail is only included in the "hint").

Log in to reply

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