← Back to Difficulty Selection
Code Review (Easy): The Team Bonus Splitter
Story
Mark was updating the company’s internal reward system to help teams split their quarterly bonus credits into balanced groups. He needed a way to identify every unique combination of four individual contribution scores that, when added together, perfectly matched the total budget allocated for a team event. Eva suggested that the results must only show unique sets to avoid repetitive planning, so if the available scores were 1, 0, -1, 0, -2, and 2 with a budget of 0, the tool should suggest sets like -2, -1, 1, and 2. Lena volunteered to build this utility so that managers could quickly see all the possible ways to group their staff for the upcoming retreat.
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 Signal Merger