Available question text
Compare two dotted version strings by splitting them into revisions and comparing each revision's integer value (ignoring leading zeros) left-to-right. If one version has fewer revisions, treat missing revisions as 0 and return -1/0/1 for less/equal/greater.
Related questions
Continue with questions that share topics or the same question type.
- Add Two Numbers
Coding · Linked List · Math · Recursion
- Add Two Numbers II
Coding · Linked List · Math · Stack
- Adding Two Negabinary Numbers
Coding
- Average Value of Even Numbers That Are Divisible by Three
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 165. Compare Version Numbers
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source