4fc4bd2c2062d7d8f1b6c89a419512dd1cc4062c
This fixes my logic errors from the first attempt so the letters are much clearer now. It also swaps from trying to iterate over segments of a grid, pulling from later segments, to simply storing the list of marked points in a more efficient (and obviously smaller) collection that we add to and remove from when transforming points via folding, which is where the speedup comes from. Fun fact: printing the result is about a quarter of the runtime of part 2.
Advent of Code 2021
My solutions to Advent of Code 2021.
Description
Languages
C#
94.8%
JavaScript
3.1%
Rust
1.2%
Go
0.9%