30
🧸 - 2026 DAY 1 SOLUTIONS - 🧸
(programming.dev)
An unofficial home for the advent of code community on programming.dev! Other challenges are also welcome!
Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.
Everybody Codes is another collection of programming puzzles with seasonal events.
Solution Threads
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 |
Icon base by Lorc under CC BY 3.0 with modifications to add a gradient
console.log('Hello World')
I thought you were exagerating about the easiness, because normally day 1 is easy, but being able to change a single character to solve pt2 was unusually easy. No real twist at all.
My favourite AoC challenges are the ones where part 1 is relatively straightforward, but part 2 requires some algorithmic insight or forces you to learn something new in order to complete it in a reasonable amount of time.
I think all the people in this thread who have responded so far will be coding enthusiasts, and this is just a warm-up. Yes, you can solve it by resorting the list in the opposite direction. Or you can be a bit more efficient and reuse the same list, which requires you to do reverse iteration and risk off-by-one errors, which we all had to learn once.
Back when it was 'four weeks of AoC', I used to mentally divide up the weeks into:
... and looking at the stats, the drop-off in completion rate for the first problem that needed recursion was quite stark. So yeah, let's start off with a couple of puzzles for everyone.
Definitely nice to have a warm up, but pt2 was just too easy IMO.
I like the ones where pt 1 can be solved trivially, but in order to do pt2, the logic or approach needs to be completely flipped.
Slapping memoisation on a trivial solution just feels a bit boring after a while, even if it is cool