Mercurial > repos > other > adventofcode2023
comparison day8b.rb @ 17:92144824cbb7
Add "inside the loop" counting for day 10 part 2
Use the "how many lines do we cross?" approach. We also need
extra state for "am I actually inside a line, or did it just
revert back on itself".
Slightly slow, but not terrible.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 10 Dec 2023 20:26:12 +0000 |
parents | a7fb64b48830 |
children |
comparison
equal
deleted
inserted
replaced
16:9b1d04091335 | 17:92144824cbb7 |
---|