View on GitHub

advent-of-code-2022

Readable Advent of Code 2022 algorithms and solutions in C language

Day 4: Camp Cleanup

Let $\ell$ be a list where for all $((a_0,a_1),(b_0,b_1))\in\ell$, we have $a_0,a_1,b_0,b_1\in\mathbb{N}$.

Part A

Let $n\leftarrow 0$.

For $((a_0,a_1),(b_0,b_1))\in\ell$:

Return $n$.

Part B

Let $n\leftarrow 0$.

For $((a_0,a_1),(b_0,b_1))\in\ell$:

Return $n$.