Module advent_of_code_2022::day_4
source · Expand description
This is my solution for Advent of Code - Day 4 - Camp Cleanup
Today is comparing the ranges of the base camp pairs of elves have to clean to check for redundancy.
Functions
- Given a list of elf pairs, count those that match the given predicate
- Predicate for counting pairs that wholly overlao
- Predicate for counting pairs that wholly or partially overlap
- Parse the string puzzle inut into a list of elf pairs
- Parse a lne of the input as a single pair of elves
- Parse the bounds of the range assigned to one elf
- The entry point for running the solutions with the ‘real’ puzzle input.