โ† Zoho questions
CodingMedium

Compare two version numbers

Filed under Zoho

Compare two version strings (e.g., '1.0.1' and '1.1') to determine which is greater. Return 1 if v1 > v2, -1 if v1 < v2, and 0 if 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.

Related Zoho questions

Collected from public candidate posts and coding forums. Updated Nov 2026.