Loading...

The Date Sorter

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 date strings in 'YYYY-MM-DD' format, sort them from earliest to latest and return the sorted list. Do not rely on lexicographic comparison alone - ensure the logic is correct for dates across different months and years.

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.