The Version Parade
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L5
Problem
Given semantic version strings in 'major.minor.patch' format, return them sorted from oldest to newest. Compare each component as an integer, not lexicographically.
Summary
1.0 before 2.0. Don't let the dots confuse you.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.