Link: https://leetcode.com/problems/compare-version-numbers/
Solution:
Topics: two pointer
Intuition
Pretty trivial problem. One thing to note: int(x)
in python removes leading zeros, so its the perfect function for this problem.
Implementation
Review 1
Cute little problem! Clean implementation is not obvious, so it’s a good one.