The test case is not perfect


  • 0
    J

    when I look at others' solution which passes the test, I find that for 10.1 and 10.01, they are the same version. This does not make sense.


  • 2
    C

    10.1 can be separated into 2 sections, 10 and 1. The same way, 10.01 can be separated into 2 sections,10 and 01. It is easy to understand that the first section is equal. But why is 01 equal to 1? In fact, this is a common regulation. In version management, you should ignore the 0s ahead.


Log in to reply
 

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