Two Pointers
165. Compare Version Numbers
Compare two dotted version strings like "1.01.0.0", returning −1/0/1. Two rules make this trickier than a plain string compare: leading zeros don't count ("01" == "1"), and a shorter version is…
Loading…
Compare two dotted version strings like "1.01.0.0", returning −1/0/1. Two rules make this trickier than a plain string compare: leading zeros don't count ("01" == "1"), and a shorter version is…
Loading…