Practice · 3 of 3
Stale Branch Report
CHALLENGE
Difficulty: intermediate+25 XP
Given branches — array of { name, ageDays, ahead } (ahead = commits main doesn't have) — write staleReport(branches): return names of branches that are stale, where stale = ageDays > 14 AND ahead > 5. Sort alphabetically. This is the exact check a bot runs on real repos.
Press Submit to check your solution.
Back to lesson: Practice: Branch Naming & Flow — Practice