Day 11: Monkey in the Middle
Day 11 involves simulating monkeys playing a game of keep-away with items of various worry levels.
Problem Overview
You need to model a group of monkeys passing items between them according to specific rules. Each monkey:
- Has a list of items with worry levels
- Inspects each item, applying an operation to update its worry level
- Tests the worry level to decide which monkey to throw the item to
- Keeps track of how many items it inspects
The challenge is to determine the level of "monkey business" (product of inspection counts of the most active monkeys) after a number of rounds.
Navigation
- Problem Description: Detailed description of the day's challenge
- Solution Explanation: Walkthrough of the approach used
- Code: The complete implementation with comments