Commit graph

2 commits

Author SHA1 Message Date
8e780753c1 feat: solve day4 part 2
Part two is solved by repeatedly removing all free rolls until there
are no more rolls to remove. When removing the rolls we keep a running
count of how many rolls we've removed.
2025-12-05 00:17:40 +01:00
Jacob Jonsson
47259d1697 feat: solve day4 part 1
We look at each valid (having coordinates inside the grid) neighbor to
a cell including a paper roll and then see if the neighbor contains a
roll of paper or not. Finally we count the number of rolls, if it is
less than 4 we can pick it.
2025-12-04 23:21:42 +01:00