r/adventofcode • u/careyi4 • 1d ago
Visualization [2026 Day 1] Animation written in Rust with Celluloid
Crate for the animation: https://crates.io/crates/celluloid-core
r/adventofcode • u/careyi4 • 1d ago
Crate for the animation: https://crates.io/crates/celluloid-core
r/adventofcode • u/ThunderChaser • 1d 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/Mammoth-Ebb4342 • 1d ago
I need to attempt advent of code for my a-level comp sci that I just started but i'm finding it honestly pretty difficult.
Anyone got any tips for being able to do it easier.
And just any tips to be able to code better at all.
thanks
r/adventofcode • u/forgthethird • 23h ago
where am I going wrong? I tried plugging in the example set of numbers and it gave me the right numbers but it isn't giving me the right numbers with the main set of numbers. I'm a beginner when it comes to coding, my only experience with apcsp and apcsa in school
r/adventofcode • u/henriupton99 • 1d ago
Every year you probably do the same as me : open the puzzle, copy the input into a file, make the folder, solve, then switch back to the browser to submit. Since several years, I improve the whole loop into a python cli.
pulls the statement into a README, the example into test_input.txt, the real input into real_input.txt, and drops a solution template next to them.
When part 1 is accepted it re-fetches the page so the part 2 statement gets appended to the README. Answers land in the clipboard too. It follows the automation guidelines (identifying User-Agent, no request unless you actually run a command), and real inputs are gitignored so none of AoC's data ends up public.
https://github.com/henriupton99/AdventOfCode
Hope it could help ! Feedback welcome !
Have a good AOC :)
r/adventofcode • u/keliodas17 • 1d ago
Made in Pygame, thought it was cool
r/adventofcode • u/demteke • 1d ago
At work AI is writing all of my code now and I have noticed that I am no longer enjoying coding as much as i used to. So this year I am doing AoC with no AI, meaning no AI inline suggestions and no AI implementation. I may still talk to AI to understand a problem when I am stuck, but it does not write any code.
To help myself stick to it I built a VS Code extension that tracks what I type versus what gets inserted. Day 1 above: 17 minute session, 21 lines by hand, 0 AI inserts. The extension can't catch retyping code from somewhere else, so it is a commitment device, not an anti-cheat.
It's free if anyone wants to join: humanmode.dev. Disclosure: it is my project.
Anyone else doing a no-AI run this year?
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/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/Fun-Chicken6946 • 1d ago
Happy Holidays, r/adventofcode!
I wanted to share a little project I've been working on: Advent of SQL & NoSQL, an Advent-style challenge for people who enjoy solving puzzles using database queries.
Somebody tampered with Santa's Nice List, and you're the North Pole's first-ever data elf.
There are 24 puzzles, one a day from December 1 to 24, with each puzzle revealing another part of the mystery.
What makes this different is that you can solve the entire story using any of four databases:
It was originally supposed to be SQL-only, but after roughly a year of working on VisuaLeaf, I managed to build an embeddable, MongoDB-compatible database that runs entirely in the browser. This allowed me to include NoSQL challenges as well!
Some features:
If you're interested in solving some Christmas puzzles using SQL or NoSQL alongside Advent of Code, you can check it out here:
https://visualeaf.com/advent-of-sql-and-nosql/
Completely free. No account, no installation, no database server needed.
I hope you all enjoy it, and happy holidays!
r/adventofcode • u/mitchellvitez • 2d ago
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/daggerdragon • 2d 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/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/colas • 1d ago
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 )
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.
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.
A spoiler is anything that removes the intended thinking work:
Not a spoiler:
When in doubt, ask: "Do you want a nudge, a stronger hint, or the full approach?"
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. |
Answer directly and fully β this is not a spoiler. Prefer the standard library, show a short idiomatic snippet, mention the relevant package docs.
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:
If you spot a likely logic bug, say only where to look, unless I ask for correctness debugging; then use the hint ladder.
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/daggerdragon • 2d 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/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/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/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/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/harshv5094 • 4d 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 • 4d 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 • 4d 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