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_line 🔒
    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.

Type Aliases

  • Pair 🔒
    The assignments for a pair of elves
  • Range 🔒
    Represents a length of beach an elf is assigned to clean