View on GitHub

advent-of-code-2022

Readable Advent of Code 2022 algorithms and solutions in C language

Day 6: Tuning Trouble

Let $\ell$ be a list where for all $e\in\ell$, we have $e\in\mathbb{Z}$.

Algorithm I with argument $k\in\mathbb{N}$.

Let $n\leftarrow 0$.

Let $i\leftarrow 0$.

Let $D\leftarrow\emptyset$.

For $e\in\ell$:

Return $+\infty$.

Part A

Return the result of Algorithm I with argument $k=4$.

Part B

Return the result of Algorithm I with argument $k=14$.