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
The engineering manager wants to flag repos with infrequent commit activity. For each repository, compute the average gap in days between consecutive commits. Only include repos whose average gap exceeds 5 days, and rank them by how inactive they are, widest average gap first. Return the repo name, average gap, and inactivity rank.
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.