Guess we don't need to consider those really long inputs


  • 0

    What if the version number is really long, say: 10.2.1.123456789123456789122364549

    When both valueOf() and parseInt() can't work any more, you have to deal with string comparing.

    Maybe we should add some comments about it.


Log in to reply
 

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