Python, output for maxInt (2147483647) not working properly


  • 0
    M

    Hi !
    My code handles the > maxInt and < minInt cases and works perfectly when I test it on my computer: when I give input 2147483648 it returns 2147483647. However, when I copy paste my code and test it in leetcode it returns a different output and gives me an error (since the output is not correct).
    Any idea why this happens?


Log in to reply
 

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