← Back to Difficulty Selection
Code Review (Easy): Organizing Build Logs
Story
Mark was updating the team’s internal monitoring tool, which labels build logs as failed, unstable, or stable. Eva reviewed his initial draft and suggested he reorganize the logs directly within the existing display list to keep the interface snappy. He needs to make sure that as the data comes in, it automatically shifts so all failed logs sit at the top, followed by unstable ones, with stable logs at the bottom. For instance, if the tool receives a sequence of stable, failed, stable, unstable, unstable, and failed, it should immediately rearrange them into failed, failed, unstable, unstable, stable, stable.
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 Inward Spiral