← Back to Difficulty Selection
Code Review (Easy): Simplifying Maintenance Windows
Story
While reviewing the new server maintenance log, Mark noticed that multiple teams often schedule their updates at nearly the same time, resulting in a cluttered list of overlapping blocks. He asked Lena to create a utility for the internal dashboard that merges these touching or overlapping windows into single, continuous periods. For instance, if one team is working from 1:00 PM to 4:00 PM and another starts at 3:00 PM and finishes at 6:00 PM, the dashboard should just show one consolidated block from 1:00 PM to 6:00 PM. Eva noted that this logic will be reused across several reporting modules, so the consolidation needs to be perfectly accurate.
Your Task
Read the story and code, then decide if the code is ready for production or needs improvement.
Hints
What would block an approval? Give me a hint.
Next
Check out Next Topic: The Unified Activity Stream