Commit Cadence
A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- L5
Problem
An engineering manager is auditing repositories that have gone quiet, where a repository's idleness is the average number of days between its consecutive commits. Commit timestamps are stored as text and the queries run on SQLite, so the day count has to come out of the stored timestamps. Surface the repositories whose average gap runs longer than 5 days, ordered from the most idle to the least, and number the standings as you go.
Summary
Some repos go quiet for too long.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.