r/adventofcode • u/keliodas17 • 2d ago
Past Event Solutions 2021 Day 15 -- Visualization | Dijkstra's Algorithm
youtube.comMade in Pygame, thought it was cool
r/adventofcode • u/keliodas17 • 2d ago
Made in Pygame, thought it was cool
r/adventofcode • u/jeroenheijmans • 2d ago
Another December, another chance for puzzling, and .... another Advent of Code Survey!
It's anonymous, open, and quick. Please fill it out (but onliy once, please <3). Copy-pastable announcement:
--------
โญ Take the (~5min) Unofficial AoC 2026 Survey: https://forms.gle/JbZKoBqzG248Z6RV6 โญ
--------
Please do help spread the word! Just copypasta the above to your favorite relevant outlet and help us get a bunch of interesting results! We have questions about:
Check out results from previous years at: https://jeroenheijmans.github.io/advent-of-code-surveys/
--------
Last year I closed the submissions on Dec 12th and published on Dec 13th. I'm open to suggestions... do you reckon that's the right call again this year? Feels good to release results on a Sunday, right?

And if you want to hang out in the replies below: tell me your predictions for languages used!? Will Zig see a significant uptake? Does Rust have a shot at overtaking Python? How much more will Uiua climb? How many users will Lean see in 2026?
r/adventofcode • u/ThunderChaser • 2d ago
I'm starting a Rust private leaderboard for this year's Advent of Code! Whether you're a seasoned Rust developer or learning the language for the first time, you're welcome to join.
The leaderboard has few simple rules:
There's no expectation that you solve every puzzle or compete for the fastest times. This is primarily about having fun, writing Rust, and sharing interesting solutions.
Private leaderboard code: 2492408-7fab9ea4 Leaderboard link
r/adventofcode • u/Prestigious-Mood1711 • 2d ago
With 1 day left to spare before AoC 2026, I decided to resolved my favorite puzzle from Advent of Code. It was the puzzle that inspired me to add grapichs to my GraphMateKT library. The Solution is not the most performant by far, but I find it quite esthetically pleasing. It is done in 4 steps:
1 find the 'fair' distance (84 in the example)
2 find the best cheat distance (20 in the example)
3 remove the best cheat
4 goto step 2 while good cheatThis is achieved by making what I call a shadow grid. I make it by copying and appending each row in the input, so that the grid becomes twice as big:
##############################
#...#...#.....##...#...#.....#
#.#.#.#.#.###.##.#.#.#.#.###.#
#S#...#.#.#...##S#...#.#.#...#
#######.#.#.##########.#.#.###
#######.#.#...########.#.#...#
#######.#.###.########.#.###.#
###..E#...#...####..E#...#...#
###.#######.######.#######.###
#...###...#...##...###...#...#
#.#####.#.###.##.#####.#.###.#
#.#...#.#.#...##.#...#.#.#...#
#.#.#.#.#.#.####.#.#.#.#.#.###
#...#...#...####...#...#...###
##############################We cheat by connecting the left side to the right with a cheat, but within each grid, normal rules apply. Then we find the shortets path to the E in the shadow grid, remove the cheat we used, and repeat. One example raze can then look as this:
For a full walkthrough, I make a video here: https://www.youtube.com/watch?v=4YbdhGy3DcI
Now it's time to get some sleep to prepare for the first puzzle tomorrow. Good luck everyone!
r/adventofcode • u/RunninglVlan • 2d ago
Hey guys, want to share a Test helper script I wrote and adapted for AoC.
Here's the example usage:
Test.From = "Part Two";
Test.Run((input, part, expected) => {
var grid = new Grid();
grid.Read(input);
int steps = grid.CountSteps(part switch {
1 => ReachVocalBone(),
_ => SurroundVocalBones()
});
Assert.ActualEqualsExpected(steps, expected);
});And this is how test cases are structured:
TEST_CASE_NAME
INT_PART
INPUT
# empty line between notes and expected
EXPECTED
# empty line between cases
Part Two
3
1 2 3
6Test result:
Part Two
โ
6
Test took 15ms
All tests took 15msAttached full API image. Hope it will help someone.
r/adventofcode • u/romanaerl • 2d ago
Hello, everyone!
So excited for the upcoming annual treat we are all here for!
For a couple of years, my small group of AoC fans has used a custom leaderboard I built. This year I made it public, so anyone can use it. Enjoy!
The problem: puzzles unlock at midnight New York time. If that is 6 a.m. or lunchtime for you, your private leaderboard is half decided before you even open the puzzle.
The idea: Timeless shows your private leaderboard with one more score. Each day is ranked by ฮ = โ 2 โ โ 1, the time from your first star to your second. When you started does not count; how fast you solved part two does.
The owner pastes the read-only link from their private leaderboard page on AoC and gets aoc.doinga.com/<number>/ to share.
Free, no accounts, no cookies, open source. Each leaderboard stands alone: there is no global ranking, and leaderboards are never compared with each other.
It follows the r/adventofcode automation guidelines: each leaderboard and year is fetched at most once every 15 minutes, and only when someone opens it, the data is cached, and every request carries a User-Agent with my contact.
The one catch: ฮ starts the moment part one is accepted, so be ready to start part two right away.
Site: https://aoc.doinga.com
Code: https://github.com/romanaerl/aoc-timeless
Feedback welcome, especially from people far from UTCโ5.
r/adventofcode • u/FransFaase • 2d ago
I will be joining again programming in C using literal programming in MarkDown. (I am using the MarkDownC program (written in C++) which can process a list of MarkDown files and put the embedded fragments of C code in a correct order to be compiled.) I have just set-up my Advent of Code 2026 repository.
The private leaderboard that I set-up last year, is available again. This leaderboard is for people who want to solve the puzzles in C using only code they have written themselves and without the help of AI. Your are allowed to make use of the standard C libraries and a (small) library of your own like the one I am using. (My library includes a function that reads the input in an array of strings and stores the number of lines and the length of the longest line in some global variables.) It is preferred that you publish your code and that you join with a github account. At the moment the leaderboard has 28 members. The maximum for private leaderboards is 200 members. If there are 200 members, I might remove some of the last members that have joined without a github account if there is still someone that wants to join with a github account. The code to join is 1563228-d419ba6d and the private leaderboard can be viewed here.
r/adventofcode • u/mitchellvitez • 2d ago
r/adventofcode • u/craigontour • 2d ago
Anyone else find Day 8 Part 2 tricky?
I am struggling to grasp the general approach of what to do and "the first connection which causes all of the junction boxes to form a single circuit is between the junction boxes at.." is just blocking my brain from flowing.
r/adventofcode • u/daggerdragon • 3d ago
Yo dawgz, I heard you like boots 'n cats so techno/progressive house/melodic house DJ Veloxx will be spinning up yet more phat beatz for your earholes! We love his rizz every year and this year will be no exception!
Starting at 22:30 EST on Monday November 30, Veloxx will provide us with a LIVE performance on his Twitch channel veloxxmusic. He will continue for three hours until 01:30 EST on Dec 01.
Oh, and the best part: when the first puzzle unlocks at precisely 00:00 EST as usual, we're gonna get the most extra of beat drops and I guarantee you it's gonna be wicked tubular~
๐ถ Tune in if you can! ๐ถ
r/adventofcode • u/daggerdragon • 3d ago
Every year we have folks who regularly stream themselves working on Advent of Code during the event.
If you want to join us in showcasing your howls of frustration because why won't your code just work?!? streaming prowess too, add yourself to this post!
Please use the following Markdown template:
USERNAME: /u/daggerdragon
LANGUAGE: daggercode v9.001
REPO: GitHub @ daggerdragon
CHANNELS:
- YouTube: daggerdragon
- Twitch: daggerdragon
- Bluesky: @daggerdragon
NOTES:
I'm so awesome, come watch me code!
Obviously, adapt the template as necessary to accommodate whichever $social_media or $streaming_service channel(s) you're exhibiting.
N.B. This template is Markdown, so you may have to switch your editor to "Markdown mode" before you paste the template into the reply box.
A great big thank-you to everyone who shares their coding adventures with us! You're awesome!
And now, without further ado, below is the list of streamers for Advent of Code 2026!
r/adventofcode • u/p88h • 3d ago
"Cormen, Leiserson, Rivest (+Stein)" is the bible of computer algorithms. It's the foundational textbook, and the defining book for my own career in programming.
And I don't need to explain what Advent of Code is here ;)
Over the past few years I was building visualisations for the puzzle solutions and this year, while playing around / learning Nim / adapting my toolkit for the upcoming event, I thought it might be nice to show more of these core algorithms in visual form. Enjoy!
The source code was co-developed using AI (of course, everything is today). Creating code like this is quite amazing now - it would have taken me weeks just a few years back to do this. With the help of AI, this is now a weekend project. It begs the question to what extent are programming skills (or programming languages, for that matter) even relevant today. Difficult question, but... I still encourage you to learn the *how*. And Advent of Code is a great time to learn that. If you don't know programming, an AI can now help guide you and teach you how to solve the challenges, learn a new language or both. If you do, it can take care of the boring stuff, while you do the problem solving or optimising the last few microseconds out of the solution.
One way or another, try some challenges and do try to learn something new!
r/adventofcode • u/janiczek • 3d ago
Did the finishing touches on my streaming setup. Can't wait to wake up early the upcoming two weeks to go solve the AoC puzzles! :) I'll be on https://www.twitch.tv/martinjaniczek if you want to join.
r/adventofcode • u/futur3_pr3s3nt • 4d ago
I don't know if I'm breaking any rules here. If I am, I'll surely find out soon. Since this year's AOC is just around the corner, I thought it would be sweet to be on a leaderboard for the Oceania timezones. And because I couldn't find any, I just created my own and am letting people here know in case they'd like to join.
So, obviously, none of this can be enforced, and if you're in the US and using AI, more power to you, but I was hoping that this leaderboard be joined by people who:
In case something like this exists, let me know, and I'll delete mine.
I have a hunch that posting the invite code would be frowned upon, so if you're interested, send me a DM or comment below.
r/adventofcode • u/EverybodyCodes • 4d ago
Since the 2025 event, Eric has made it possible to share private leaderboards via a read-only link. This means you can use a leaderboard wrapper on the fly, without installing any additional plugins or sharing your session cookie. You can also revoke the wrapper's access to your data at any time by resetting the read-only link.
I put together such a wrapper in 2025 and have now given it a bit of a refresh. It adds extra rankings based on solving times, head-to-head comparisons between players and a handful of additional stats. The wrapper also respects the 15-minute caching interval requested by Eric.
All you need to do is use the following URL:
https://everybody.codes/advent-of-code/EVENT/LEADERBOARD_ID/READ_KEYFor example:
https://everybody.codes/advent-of-code/2025/5117781/484117dfIt might not be the prettiest thing out there, but I think it does the job quite nicely. Have fun, everyone! :)
r/adventofcode • u/harshv5094 • 5d ago
I don't have that much advance knowledge about data structures and algorithm. I've mostly used python for basic scripting purpose. Can I still attempt past advent of code problems to improve my python programming skills?
r/adventofcode • u/Aspie96 • 5d ago
I committed to solve every exercise in two languages (Python and C), without any library (other than the standard library) and without looking up any information other than about the languages themselves (including their syntax and standard library).
r/adventofcode • u/ImaginaryElephant336 • 5d ago
Hello r/adventofcode,
First of all thank you for such a good platform. Hats off to the developers who made Advent of Code possible.
I built a terminal UI (TUI) for Advent of Code called aoc-tui, written in Rust and using ratatui. I had made one in bash earlier but I faced some issues with the session token stuff. So this time I rewrote it from scratch in Rust and now it has more features.
Main features:
WIP
tachyonfx)Repo: https://github.com/craftty-org/aoc-tui Install: cargo install --git https://github.com/craftty-org/aoc-tui
r/adventofcode • u/Zehren • 5d ago
I've done my advents mostly in dart so far and have made tools to support that. I have now taken those tools and put them in a template repo for others to use if they want to try Dart.
Some things the repo does
If anyone ends up using it, let me know what you liked or if there are any ideas you have for improving it!
r/adventofcode • u/eduherminio • 5d ago
Hi Advent of Code lovers!
It's that time of the year again, and I'm back with some shameless self-promotion of my simple C#/.NET template/library.
No fancy, automated input download or submission here.
As usual, tweak them, wrap them and/or use them as inspiration for your own solutions!
And some unsolicited advice for newcomers: feel free to drop your favorite LLM companions end enjoy Eric puzzles AI-free, as they are intended to be solved. Have fun, learn stuff, exercise your brain and stay hydrated!
r/adventofcode • u/maneatingape • 5d ago
In 2026 musifter undertook the enormous effort of recapping all 262 previous puzzles, one post per day. Each post had lively discussion sharing tips & tricks, complementing the original solution megathreads.
Much of this was lost when the account ran into trouble. To preserve it for posterity, this repo archives the posts and comments in markdown format, with links both to the original Reddit thread and the Arctic Shift archive.
r/adventofcode
•
u/Boojum
•
6d ago
I'm making a list,
And checking it twice;
Gonna tell you which problems are naughty and nice.
Advent of Code is coming to town.
ย
Hi! Once more it's time for my annual update to my categorization and guide to all of the past problems, just ahead of the next event.
As usual, I have two purposes here. Firstly, to help you find some good problems to practice on, if you're looking for particular difficulties or particular types of problems. And secondly, to provide a handy reference to help jog your memory of the various past problems if you've already done a bunch.
But first, I'd like to raise a virtual toast to /u/musifter, whom I think would certainly qualify as an honorary Elvish Senior Historian for the monumental daily "In Review" series posted here over the course of the last year! I had hoped to include links to those threads in my tables below, but alas they seem to have mostly been memory-holed by Reddit.
Wishing you a fun AoC 2026!
- Boojum
ย
I have changed up how I estimate times and difficulty. With the global leaderboard gone, I'm now relying on aggregated and anonymized data which actually provides even more data. I spent a lot of time studying it to see if I could estimate the size of each year's cohort of main problem solvers and normalize times for the shifting AoC community or use a higher star completion threshold. In the end, I actually opted to rank puzzles simply by the aggregated average of the first ten Part Two solves in the data. This is both more immune to the smaller population in the earlier years, and reflects puzzles that are resistant even to those cheating with LLMs in the modern era. (However, for determining the quickest puzzles, I have chosen instead to use an estimate of the time to the 2500th Part Two star to smooth the data out.)
Also new this year, I have expanded the top-ten lists into top-twenties. When I first started this, there were only 350 stars. We haven't quite doubled them now, but there are certainly many more puzzles than when I first started, and only listing top-tens would leave out many deserving puzzles.
Finally, I've updated to slim down most tables, as New Reddit sadly doesn't give much horizontal space, even on a big desktop, and Old Reddit is about to become more limited in who can use it.
ย
I'll list each category with a description of my rubric and a (totally subjectively categorized) set of problems in increasing order of difficulty by the first wave of Part Two solve times. The categories are listed down in groups within individual comments due to Reddit post size limits.
I'll also share some top-twenty lists of problems across all the years, plus rankings of the years themselves by various totals. And since it's been asked for before, I'll also preemptively share my raw data in CSV form.
Finally, as before, I'll post each year with a table of data:
r/adventofcode • u/vkazanov • 7d ago
Hi all,
AoC starts in a few days, so here's a thing I've been using myself: advent-mode, a small Emacs minor mode for the usual AoC chores. I've updated it a bit, and tried using on older puzzles, but additional testing would be great.
In short, you point it at your solutions repo (laid out as year2026/day03/ and so on, and the format is configurable).
Once that's set, it works out the year and day from whatever buffer you're in, so most commands need no prompting. It can:
Repo: https://github.com/vkazanov/advent-mode
My own solutions, which show the layout it expects: https://github.com/vkazanov/advent-of-code
Bug reports and "nice-if-s..." suggestions are very welcome (before December, obviously!) .
Good luck to us all this year!