Loading...

The Version Ranker

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
junior, mid

Problem

Given a list of semantic version strings like '1.2.10' and '1.10.0', sort them from oldest to newest. Standard lexicographic sorting will fail here - version components must be compared as integers. Return the sorted list.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.