← Back to Difficulty Selection
Code Review (Easy): The Balancing Act
Story
Lena is building a small internal utility to help the finance team reconcile historical data points. The goal is to pick exactly three records from a provided list that, when added together, get as close as possible to a specific target value. During a quick review, Mark noted that this would be perfect for the shared resource library, as the platform often needs to approximate goal figures using combinations of past metrics. For example, if the target is 1 and the available values are -1, 2, 1, and -4, the tool should identify that the sum of -1, 2, and 1 provides the closest possible match of 2.
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 Team Bonus Splitter