harbor run -t openthoughts/tasktrove-mix-h11-compositional-gradient-v2-mix-h11-compositional-3840harbor download openthoughts/tasktrove-mix-h11-compositional-gradient-v2-mix-h11-compositional-3840Rewritten Task: Three-Skill Coin Change with JSON I/O
This task requires EXACTLY three skills: (1) the original algorithmic ability to determine the fewest number of coins to reach a target sum, (2) file I/O to read input from a JSON file, and (3) JSON parsing to interpret and produce JSON data. The solution must be a single cohesive program that uses both file I/O and JSON parsing to perform the computation.
Input /app/input.json: { "target": 15, "coins": [1, 5, 10, 25, 100] } Possible /app/output.json: { "target": 15, "min_coins": 2, "coins_used": [5, 10] }
Input /app/input.json: { "target": 40, "coins": [1, 5, 10, 25, 100] } Possible /app/output.json: { "target": 40, "min_coins": 3, "coins_used": [5, 10, 25] }