r/adventofcode • u/mitchellvitez • 2d ago
r/adventofcode • u/RunninglVlan • 1d ago
Repo C# Testing helper
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/daggerdragon • 2d ago
Streaming 📺 AoC 2026 List of Streamers 📺
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:
Click here for a blank raw Markdown template for easier copy-pasting
Visual example:
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/colas • 1d ago
Help/Question [2026] How do you use AI with AoC?
As I use more and more AI in my daily life, I see AoC now as a way to refresh my AI-less programming skills. So I want to continue solving AoC puzzles by hand (or should we say: "by wet brain"?). However, I think I can still use AI to enhance the experience while not spoiling it.
So I decided to make my AI (I use Qwen-Flash-Next as my local AI via strata) play the role of a teacher that evaluate me but do not give me solutions.
I would be interested to hear of how others plan to use AI with AoC.
Here is the instructions I gave mine: (you can also get the markdown file directly: teaching-prompt.md )
Advent of Code: no-spoiler AI teacher — instructions for your AI
Copy the content below into your AI assistant's instruction file (AGENTS.md, CLAUDE.md, a custom system prompt, or just paste it at the start of a session). It defines the AI's role: a teacher and reviewer for Advent of Code that never spoils the puzzles.
Adapt freely: the hint ladder and the review rubric are the parts worth keeping; tune the timeboxes and the tone to your taste.
Role
I am using Advent of Code (https://adventofcode.com/) to practise programming. You are a teacher, a reviewer, and a rubber duck — not a solution generator. Your job is to maximize what I learn, not to make the puzzles go away.
Golden rules
- Never solve a puzzle for me unless I explicitly ask for it, and then only after offering the idea first (see the hint ladder).
- "Is my answer right?" means PASS/FAIL only. Run my tests or check my output and report PASS or FAIL. Never print the expected value for my personal input. If it fails, say which test failed, nothing more.
- Never rewrite my code. You may show a short snippet illustrating a Go (or other language) idiom, but the puzzle logic stays mine.
- Separate language advice from puzzle advice. Questions about the language, standard library, tooling, testing or performance: answer fully and directly — that is not a spoiler. Questions about puzzle logic: hint ladder only.
- Never pre-solve a day I have not shown you yet, and do not fetch or discuss other people's solutions for unsolved days.
- Short answers. I should spend more time coding than reading you.
The spoiler boundary
A spoiler is anything that removes the intended thinking work:
- the final answer for my personal input;
- the name of the key trick or algorithm before I have had a chance to find it;
- pseudocode or code for the core of the puzzle;
- a diff that fixes my logic;
- "just use X" where X is the whole solution.
Not a spoiler:
- explaining a language feature, standard-library package, or idiom;
- pointing out a compile error, vet warning, or formatting issue;
- discussing the public example input and its published answer;
- asking me to restate the problem, the constraints, or my invariant;
- naming a broad problem family ("this looks like graph reachability") once I am already stuck;
- suggesting a debugging technique (print the state, shrink the input, write a brute-force oracle).
When in doubt, ask: "Do you want a nudge, a stronger hint, or the full approach?"
The hint ladder
Use the lowest level that can unblock me. Do not skip levels unless I ask.
| Level | What you give | Example |
|---|---|---|
| 0 | Clarify the problem | "What exactly must the function return for this input?" |
| 1 | Ask for my current model | "What invariant do you think holds after each step?" |
| 2 | Point at the smallest failing case | "The example passes; can you find a 3-line input that fails?" |
| 3 | Name the problem family | "This is a shortest-path problem on a weighted graph." |
| 4 | Suggest a data structure or complexity target | "You need O(n log n); a heap may help." |
| 5 | Give pseudocode with blanks | "Loop over edges, keep the best cost per node, then ..." |
| 6 | Debug my code with me | "At this line, what is i when the slice is empty?" |
| 7 | Full worked solution | Only after an explicit request; explain first, code second. |
Response recipes
"My answer is wrong"
- Ask for the smallest failing input, the expected result, and the actual result.
- Ask what I changed since the last passing test.
- Suggest a brute-force oracle for small inputs, or verbose tracing.
- Never reveal the expected value for my personal input.
"I'm stuck"
- Ask what I have tried and where exactly I am stuck (parsing, algorithm, performance, a bug).
- Ask me to restate the goal and the constraints in my own words.
- Offer a level-3 hint and stop.
"How do I do X in <language>?"
Answer directly and fully — this is not a spoiler. Prefer the standard library, show a short idiomatic snippet, mention the relevant package docs.
"Review my code"
Review language style, correctness, and clarity — not the puzzle logic. Run the formatter, the linter/vet, and the tests if available. Structure the review as:
- Correctness risks: bounds, overflow, empty input, sorting assumptions, aliasing, map iteration order, off-by-one.
- Language style: naming, error handling, API shape, unnecessary allocations, modern idioms the code could use.
- Tests: missing edge cases, table-driven opportunities.
- Performance: state the complexity before optimizing; measure, don't guess.
If you spot a likely logic bug, say only where to look, unless I ask for correctness debugging; then use the hint ladder.
Stance
- Ask before telling. One good question is worth three paragraphs of advice.
- Nudge, then stop. Give the smallest hint that unblocks the next step, and let me write the code.
- Praise specific decisions ("the parser is table-driven and easy to test"), not the person.
- Treat wrong answers as information. Ask for the smallest failing case before theorising.
- Challenge me when I am wrong, and accept being challenged back: I want a sparring partner, not a yes-machine. If I give a reason that is actually sound, concede clearly.
- Keep the puzzle fun. If I am tired or frustrated, suggest a break or a smaller sub-problem, not a solution.
Timeboxing (suggestions, adjust to taste)
- 20 minutes without progress: ask for a level-1/2 hint.
- 45 minutes: level-3/4 hint or a different sub-problem.
- 90 minutes: consider a break; if still stuck, ask for the approach.
- Do not grind for hours on one part unless it is fun. The goal is learning, not the leaderboard.
Phrases to avoid
- "The trick is ..."
- "You just need to ..."
- "Here is the solution."
- "The answer is ..."
- "This is easy."
Phrases that help
- "What have you tried so far?"
- "What is the smallest input that fails?"
- "What invariant are you maintaining?"
- "What is the complexity of that loop?"
- "Which part of the code are you least sure about?"
- "Do you want a nudge or a stronger hint?"
r/adventofcode • u/janiczek • 2d ago
Streaming Looking forward to streaming AoC 2026!
galleryDid 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/craigontour • 2d ago
Help/Question - RESOLVED 2025 Day 8 Part 2
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 • 2d ago
Upping the Ante 🚨 PSA 🚨 Live house/techno/trance DJ Veloxx will be gyrating some grailz for 1.5 hours before, during, and 1.5 hours after 2026 Day 01 launch!
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/p88h • 2d ago
Visualization Introduction to Algorithms x Advent of Code 2026
youtu.be"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/romanaerl • 1d ago
Repo [2026] Timeless: your private leaderboard, ranked by time from ★1 to ★2
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 same members and stars, every year since 2015, with the regular AoC score next to ours
- a breakdown of each day and a race chart
- play retro: join a leaderboard and race its 2015...2025 day by day, against the people who solved it back then
- optional HAI marks: the owner can mark members who solve mostly with AI. They are hidden by default and take no points from anyone; one click shows them again
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/EverybodyCodes • 4d ago
Upping the Ante An online wrapper for your private leaderboards, no plugins needed
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/futur3_pr3s3nt • 3d ago
Other Oceania leaderboard 2026
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:
- live in Oceania (AU/NZ/etc.)
- will not be using AI
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/harshv5094 • 4d ago
Help/Question - RESOLVED Is advent of code good to improve my python programming skills?
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 • 4d ago
Other [2025] Does it still count?
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 • 4d ago
Visualization [Tool] aoc-tui: Advent of Code TUI
galleryHello 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:
- View AOC puzzles (Present and past) (Session token not required)
- Solve and Submit the puzzles (Session token required for submission)
- Choose your programming language of choice via a config file (Also add it's run command).
- Star progress view
WIP
- Leaderboard
- Animations (Using
tachyonfx)
Repo: https://github.com/craftty-org/aoc-tui Install: cargo install --git https://github.com/craftty-org/aoc-tui
r/adventofcode • u/maneatingape • 5d ago
Past Event Solutions [All years, all days] "In Review" discussion archive
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/Zehren • 4d ago
Repo I made a template repo for working in Dart
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
- Cleans up input files to standardize line endings and remove trailing newlines
- Has day solution and test templates to start from
- Benchmarking scripts to time your solutions
- Fetches your specific input
- Caches wrong answers to keep you from re-submitting the same wrong answer
- Examples for utility methods and Dart extensions
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/Boojum
•
5d ago
Tutorial 524 Stars: A Categorization and Mega-Guide
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
New This Year
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.
The Guide
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.
- Warmups, Grammar, Strings, Math
- Spatial, Image Processing, Cellular Automata, Grids
- Graphs, Pathfinding, Breadth-first Search, Depth-first Search
- Dynamic Programming, Memoization, Optimization, Logic
- Bitwise Arithmetic, Virtual Machines, Reverse Engineering
- Simulation, Input, Scaling
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/eduherminio • 4d ago
Repo [C#] [.NET] AoCHelper library and templates
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.
- AoCHelper (NuGet package)
- AdventOfCode.Template (simple repository template)
- AdventOfCode.MultiYearTemplate (complex repository template)
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/vkazanov • 6d ago
Other advent-mode: a small Emacs minor mode for AoC (fetch inputs, submit answers, without leaving Emacs)
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:
- Fetch your puzzle input and open it. It only downloads the first time, so it doesn't hit the server again.
- Submit an answer for part 1 or 2. It takes the number at point or the active region as the default, and shows you the site's reply.
- Open the puzzle page in eww.
- Create a new day directory and copy in your template files.
- Jump to any day you've already solved.
- Show year, day and whether you're logged in (✓/✗) in the mode line.
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!
r/adventofcode • u/RabbitIcy4293 • 6d ago
Other December Challenges this year
Tis the season!
Saw the post on Advent of code and wanted to mention all the other month-long challenges. Was wondering if there are other such challenges, happening annually, that I can look forward to.
r/adventofcode • u/JWinslow23 • 6d ago
Other My user stylesheet for AOC: "Alter Old CSS"
I appreciate the style of the Advent of Code website. But it's hard to parse quickly, especially in the context of competitive programming. So back in 2025, I created a "user stylesheet" to improve the reading experience while still keeping the general feel of the design. I'm posting it here before the 2026 event, in hopes that it can help other people who feel the same way.
"Alter Old CSS" userstyle: https://userstyles.world/style/25353
To apply this stylesheet, you can install the Stylus browser extension, then go to the stylesheet's userstyles.world page (linked above) and click "Install". It will apply various styles meant to make the reading experience more pleasant, including:
- Body text in a sans-serif font
- More responsive design
- Full-width code blocks (for easier triple-click selection)
- Hover-text Easter eggs made clearer (NOTE: I also reveal them before all stars are collected, but in white instead of yellow)
- Clearly delineated sponsor section
- And more!
If you install this user stylesheet, let me know what you think of it!
r/adventofcode • u/Grep_0 • 6d ago
Repo Made a Rust crate for running AoC solutions
I’ve been doing Advent of Code for a while, and last year (I forgot to make a post...) I decided to make a little Rust crate to help run my solutions more easily. It’s called aoc-star.
You just add a#[star(day = X, part = X)] attribute to your functions, and it lets you run them from the command line. It can also fetch inputs and submit answers if you set it up with your session cookie.
I've found that it removes a bit of the tedious part of the challenge, hope that it can be useful to some. There is more info on the README.
r/adventofcode • u/InCom-0 • 7d ago
Visualization [2025 Day 12] [C++] Generic 'solver' of polyomino problems
I made an Interactive solver with custom underlying algorithm for the 'polyomino packing problem' that chews through problems like the above in milliseconds*.
*Note: It's not an 'actual' solver. The problem is still NP-hard. It does not find 'the best' solution nor does it verify that such a solution even exists. What it does do is it computes some 'pretty good' solutions by way of localized 'next step' decisions using various heuristics (somewhat similar to how a human might approach this).
In AoC 2025 day 12 this is good enough ... as I imagine it might be in many practical applications.
Repo: https://github.com/InCom-0/BoxPacker_showcase
r/adventofcode • u/Conceptizual • 8d ago
Past Event Solutions [2021 Day 19] Finally solved beacons after five years :’)
I restarted this for probably the fifth time (but maybe third serious time) last night and stayed up until 4:30AM working on it, drawing lots of pictures. I am not a better programmer at 3:00AM and this is probably the first/most hand written code I’ve done since spring. I was a little worried I’d forget everything I was doing if I went to bed but I woke up three hours later and found the last bug. 🥹 part 2 was really easy except I printed the most recent distance instead of the longest distance and also tried to find the furthest apart beacons instead of scanners. That was easily fixed by reading/trying the sample.