Loading...
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
- senior
Problem
Our deployment pipeline needs to determine the correct upgrade path by sorting release versions. Write a function called sort_versions that takes version strings in 'major.minor.patch' format and sorts them from oldest to newest, comparing numerically - not lexicographically.
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.