โ† Adobe questions
CodingReported in a candidate post, Apr 2025

Compare version numbers with exactly two dots

Filed under Adobe

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.

Related Adobe questions

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