r/adventofcode • • 5d ago

Other Looking forward to AOC2026!

AI destroyed my motivation the last years, but now it is back! Looking forward to use my own brain cells again!

225 Upvotes

36 comments sorted by

72

u/vancha113 5d ago

Definitely looking forward to it as well, hopefully I'll fail at least one day later than last time.

46

u/DelightfulCodeWeasel 5d ago

They're not failures, they're just puzzles you haven't completed yet :)

10

u/Suspicious_Tax8577 5d ago

If you're thinking "oh I couldn't do day 6, so there's not any point trying anything beyond that", that's not how AoC works.

Day 6 part two I found really hard, day 7 and day 8 I've still not completed.

Day 12 I'm still ready to throw shoes over. I've spent months thinking I don't get how we actually solve the actual packing of the presents.

I watched a wholeass TomRocksMaths video on tetromino packing, read someone's PhD thesis!!

10

u/fireymike 5d ago

2025 Day 12 spoiler

In Advent Of Code, you only need to solve for your input, you don't need a general solution to the problem.

5

u/RazarTuk 5d ago edited 4d ago

Don't forget 2016 Day 11. I've been going back through past years, since I didn't start doing AoC until recently, and part 2 takes forever. I know that my code should work, because I got part 1. It just increases the search space way more than I anticipated. It's actually kind of frightening, given how immediately my code returns an answer for part 1

EDIT: THISTLETHWAITE! I can prune it by searching to the next minimum floor. (For reference, Thistlethwaite is an algorithm for solving Rubik's cubes by getting to smaller and smaller subgraphs)

EDIT: Yeah, the Thistlethwaite-inspired strategy worked. Basically, I mostly just used a BFS with a queue and a separate map for distances. But instead of searching for things directly, I did a loop with minFloor. At each step, it prunes the distance map, prunes anything where items move below the minFloor, and accumulates anything where everything's above the minFloor into the starting queue for the next floor

1

u/TheZigerionScammer 4d ago

Did you solve it? I'm not sure what you mean by "search for the next minumum floor" exactly but it might not get you the right answer if you're thinking what I'm thinking. There is another optimization though, one that was so simple I headdesked after I saw it because it cut my execution time from 15 minutes to 5 seconds by changing three lines of code.

2

u/RazarTuk 4d ago edited 4d ago

Actually, if you want an idea of how my solution works: paste

For a bit of context, IntMatrix is from my AoC standard library and just represents a matrix of integers. Each matrix has (elevator, target) in the first row and (generator, microchip) for every other row. getNextSteps produces a list of potential moves as matrices, automatically pruning things so that the elevator never goes below minFloor and never brings 2 items down at once. And validate checks that everything's at least at some minimum floor and that there are no unshielded microchips on the same floor as a generator.

At the end, distances contains a single key-value pair, corresponding to the state where everything's on the top floor and the minimal number of moves to get there

I didn't strictly time it, but it was practically instantaneous for part 1, and only took about 1-2 minutes for part 2

1

u/RazarTuk 4d ago

Yeah, I got it. Basically, I did it in 3 BFS's, not 1. One to get everything to the 2nd floor, one to get everything to the 3rd, and one to get everything to the 4th.

In each BFS, I went until the queue was exhausted. If I ever hit a state where everything's at whichever floor or higher, I just tossed it into a solutions queue instead of processing it. For pruning, I skipped anything that moves below the minimum floor or that produces an invalid state. And then the solutions queue was fed into the next BFS as the starting state for its queue.

2

u/terje_wiig_mathisen 5d ago

Without spoiling anything I can tell you that perfect packing is one of the known HARD problems in IT. Years ago I won a speed optimization challenge solving the far smaller/easier Pentominoes problem so I knew how hard it would be.

1

u/RazarTuk 4d ago

Also, want any hints or tips for Day 7 or 8?

1

u/Suspicious_Tax8577 1d ago

I get what I need to do, sort of.
I'm still in that "i can't express it exactly in english", so I've a snowballs chance in hell of converting that to actual functional python.

1

u/RazarTuk 1d ago

For 7.1, at least, think about if and when a beam can exist directly below a splitter. The algorithm I used technically came with the assumption that every splitter is reachable, but I wound up scanning each column from bottom to top.

Then 7.2 winds up more straightforward, IMO, because it's just dynamic programming

1

u/jeffstyr 4d ago

There are a few from past years that I solved but with slow solutions so I know I’m missing a better approach. I’ve still resisted looking to see how others solved them but at some point I need to give in because it will probably be more interesting/instructive to find out what I’m missing, rather than just pretending I’ll come up with a new insight on my own at this point.

18

u/giacomo_hb 4d ago

First AOC since software development (as we knew it) died.

18

u/RazarTuk 5d ago edited 4d ago

Yeah, I'm continuing my trend from the past 2 years of picking a silly language to use at some point. Two years ago, I did one day in Intcode, and last year I did the first few days in LOLCODE. You aren't ready for the level of silliness in this year's language.

EDIT: Perl... in the original Klingon

EDIT: Actually, for anyone who wants an idea of the silliness, I did last year's day 1 for practice. paste

13

u/WhipsAndMarkovChains 4d ago edited 4d ago

Oh I’m feeling particularly excited this year since it’s a chance to do some programming/thinking without defaulting to AI like I do at work.

11

u/craigontour 4d ago

Hopefully only 12 days this year. More
Manageable time wise, especially as I slip behind after few days.

7

u/Old-Dinner4434 4d ago

I'm also excited. Don't worry about AI; it's about having fun by yourself (and your friends, if you've got somebody who's also interested in these sorts of things).

5

u/terje_wiig_mathisen 5d ago edited 4d ago

Ditto! A bunch of us have spent the last 11 months reviewing every single AoC puzzle, I know that I have learned a lot during this process, but there are still quite a few puzzles where I haven't been able to match or beat u/maneatingape.

2

u/IlluminPhoenix 4d ago

Yeah I don't know what magic code this guy writes, but I always try to compare with his stats after the puzzle (usually he's faster)

4

u/arup_r 5d ago

What made you back again? I’m down still because I see who has put how much efforts was masked due to AI. Office politics strong folks become more favourable. 😑😑😑

1

u/nedtit 1d ago

I never had a chance in the global leaderboard anyway. So I just hand coded my solution as always. Only last year I then gave the task to cursor after I had finished. Whatever AI has created was always more code and very often slower. So I solved them all and won my own little beauty contest.

1

u/Realistic_Speaker_12 5d ago

Same! I also am looking forward to it

1

u/herocoding 4d ago

What made you resiliant this year? I expect automation and agents to submit solutions even faster than before.

19

u/mday1964 4d ago

For me, I stopped comparing myself to when other people finished. I stopped trying to do the puzzles the moment they came out. I even managed to be OK with not finishing a puzzle on the day it came out; and I still did them in order (which sometimes matters), so if I got stuck on one day, the later days slipped.

With last year having 12 days of puzzles instead of 25, that kind of took some time pressure off doing them the day they came out. If I spend two days on one puzzle, that means they'll last for more of the month. With 25 days of puzzles, I felt more pressure to keep up.

10

u/gredr 4d ago

For me, I stopped comparing myself to when other people finished.

This. If you pick up a hobby or a pastime activity and only compare yourself against the best in the world (and machines pretending to be people), it's gonna be discouraging. Do it for your own enjoyment.

6

u/argentcorvid 4d ago

Yep. 

Pick a new language or platform and do it for your own benefit.

Try to see how much you can get done with an emulated Commodore 64/Apple II/Spectrum.

2

u/RazarTuk 4d ago

Yep. For the later days, I switch to something I'm more familiar with like Java or Ruby. But for the early days, I force myself to focus on fundamentals by picking something silly like LOLCODE, where my only option for reading files was specifying the number of bytes, or Perl in the original Klingon (spoilered, because I'm trying to at least somewhat keep it a surprise), which doesn't have else statements.

4

u/Frozen5147 3d ago edited 3d ago

I mean... at least personally, I just don't care? People can go burn tokens all they want. With global leaderboards gone it's not like being first matters much now anyway.

I did take part in leaderboards but they were with people who I knew were doing it for learning/fun reasons and not using AI. It's the same this year. And the community in this subreddit seem to generally be against just throwing an agent at it too, so it's still pretty fun here IMO to see what cool solutions people have or help out others.

It's also quite silly at this point IMO to waste tokens to automatically do AOC as it's not a particularly useful exercise for agents nowadays anyway, we know they're more than capable of doing it. So if people are doing it... well I guess enjoy the electricity or token bill.

4

u/dgkimpton 2d ago

It seems the global leaderboard is gone - so there's nothing to "win" by wasting tokens. A superb move by Eric in my opinion.

3

u/Brian 3d ago

I kind of feel it's got to the point where it's good enough to be pointless. IIRC, 2024 was when it started to become relevant: AI coding was fairly new, and that it could solve some of the problems at all was a novelty, but couldn't solve them all. The problem was that where it could solve them, it did so instantly, making the time aspect kind of irrelevant. In 2025 it was a big enough problem that times weren't even being published, but there was still some "John Henry vs the Machine" spirit and a few problems it actually struggled on. This year, I don't think anyone has any doubts that AI will outperform humans completely, but that kind of means it has nothing left to prove: using it at all thus seems kind of pointless, like looking up the answer key. "Fastest time" is firmly off the table if you're competing against machines, so you can just relax and enjoy the intellectual puzzle of doing it all yourself.

-3

u/BerserkVl 4d ago

How AI could destroy your motivation if AOC is just you vs problem?

13

u/kodanto 4d ago

Removing the global leaderboard was a good call. In the before times, people were using AI to show off and game the leader board. Now everyone has access to instant solutions and are looking for a rewarding challenge since they aren't getting that in their day job anymore.

-6

u/BerserkVl 4d ago

you should have negative iq to participate in such leaderboards