Day 4: Camp Cleanup
Day 4 involves checking for overlapping section assignments among pairs of elves cleaning the camp.
Problem Overview
The elves have been assigned to clean different sections of the camp. Each elf has a range of section IDs they're responsible for. Your task is to:
- Count how many assignment pairs have one range fully containing the other
- Count how many assignment pairs have ranges that overlap at all
This problem tests your ability to work with ranges and determine subset and intersection relationships.
Navigation
- Problem Description: Detailed description of the day's challenge
- Solution Explanation: Walkthrough of the approach used
- Code: The complete implementation with comments