Solved Day 5 Part A of Advent of Code in Go. First solution worked on test input but overestimated individual input answer by roughly 200%. Went back with an alternative solution which worked first time. Still not sure why first solution didn't work but there's too much input to start debugging. Also got test fixtures working and wrote a function which returns an error for the first time.
Solution:
github.com/godev-uk/advent-of-…
Tests:
github.com/godev-uk/advent-of-…
advent-of-code/2024/05/a/5a.go at main · godev-uk/advent-of-code
Advent of Code solutions in Go. Contribute to godev-uk/advent-of-code development by creating an account on GitHub.GitHub
This entry was edited (1 week ago)