Given two version strings that each have exactly two dots (for example 'major.minor.patch'), compare them numerically. Return 1 if the first is greater, -1 if it is smaller, and 0 if they are equal.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.