988 B
988 B
Advent of Code 2025
Introduction
This is mostly so I can keep notes on my progress, in single markdown format so I can easily add it to my Silverbullet journal afterwards.
Lessons from first day
- Read! Oh that brain of mine, skipping half the things and missing things like count clicks not end point dial
- Setup a proper test, make a smaller input test that you know the answer to to check the code
Lessons second day
- More git commits!
- Clear history so you don't accidentally cp day1 to day2 during testing. (Undo FTW)
- Put the central check (Serial Valid/Invalid) in a function so it's easy to add self checks in the beginning
Lessons third day
- Can't win em all
- Code is much shorter because I'm getting better with Lua, yay
Lessons fourth day
- Need about an hour to do both, but also speeding up
Lessons fifth day
- Lua has a maximum table size, so no brute forcing :)
- When doing any type of comparing, a good pre-sort helps