Modification Needed For Possible Overflow Situation

  • 0

    Frankly speaking, this is quite a straightforward question, however, I am wondering if we need check the possible overflow situations like:
    Under this condition, the online judgement will produce [0,1] while we all know this is incorrect.
    Also, we all know that this can be fixed by using long type to denotes the numbers :D

Log in to reply

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