Module aoc::y23d04

source ·
Expand description

Advent of Code 2023 Day 4: https://adventofcode.com/2023/day/4

A relatively easy challenge that when I first saw part two I thought would be harder but ultimately didn’t require very many changes to make work. An assumption that we make (which holds true for the example input and my input) are that there are no duplicate numbers and so we can make use of a std::collections::HashSet to find the intersection between winning numbers and numbers that we have.

Functions§

  • The solution for the day four challenge.