Module day01

Source
Expand description

§Trebuchet?!

The input can contain overlapping digits such as “twone”, so we only remove a letter at a time until the starting or ending digits are found.

Constants§

DIGITS 🔒
Use the index of each digit as its implicit value.

Functions§

parse
part1
part2