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:

  1. Count how many assignment pairs have one range fully containing the other
  2. 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.