Day 2, Part 1 and Day 2, Part 2 of #AdvenOfCode all done and dusted π
My code is here. https://git.sour.is/xuu/advent-of-code-2023
My code is here. https://git.sour.is/xuu/advent-of-code-2023
@xuu@txt.sour.is Interesting π€ I mean I only wrote ~3x more code, not too bad considering:
$ wc -l day2*.go
270 day2.go
69 day2_test.go
339 total
@movq@www.uninformativ.de Iβm pretty sure itβs experience from doing past AoC puzzles π
I could have made my search smarter using a prefix search rather than scanning the full buffer for each iteration.
I could have made my search smarter using a prefix search rather than scanning the full buffer for each iteration.