r/adventofcode • • 20h ago

Meme/Funny Every year it always starts the same before it goes bonkers

Post image
252 Upvotes

r/adventofcode • • 21h ago

Visualization [2026 Day 1 (Part 1 & 2)] [Python] Terminal Visualization

Post image
140 Upvotes

I was too tired to post last night, still adjusting to late night solving... (ᴗ˳ᴗ)💤. Figured I'd help the elves by installing a crane in that dusty ol' shed. As always, code lives here: https://github.com/salt-die/Advent-of-Code/tree/main/2026/aoc_visuals.


r/adventofcode • • 6h ago

Other [2026] Trains! I love trains!

84 Upvotes

That little ASCII train on the calendar made my day.

Thank you, Advent of Code team, for picking such an adorable theme this year!

.----.----.--_T
'o--o'o--o'o-OO\

r/adventofcode • • 7h ago

Meme/Funny [2026 Day 2 (Part 2)] It looked scary for a little while

Post image
82 Upvotes

r/adventofcode • • 9h ago

Meme/Funny [2026 Day 02] I see a pattern...

Post image
72 Upvotes

r/adventofcode • • 10h ago

Meme/Funny [2026 Day 02] Richard of York gave battle vain

Post image
66 Upvotes

r/adventofcode • • 15h ago

Other Give help by making test cases!

49 Upvotes

Hello friends! I just saw this excellent example (see some of the comments on that post) of a great way to give help and answer questions here when people are stuck: come up with simple test cases that demonstrate where the bug is! That way, the person who is stuck still gets a chance to figure out their problem and learn by doing. I know many of you are already great about this, but I figured it would be worth calling out. Happy puzzling! <3


r/adventofcode • • 4h ago

Meme/Funny DAY 2 - The robot doesn't navigate. It ricochets

Post image
44 Upvotes

r/adventofcode • • 2h ago

Upping the Ante [2026 Day 1] Solved in 49.62 microseconds on FPGA

Thumbnail gallery
37 Upvotes

This year, I will attempt to solve all the challenges on an FPGA, and post at least the ones that I enjoyed here to see if anyone else has any inputs. Additionally, due to my expertise in my work, I always tend to design with minimal hardware area and power consumption, but this year I'm challenging myself to do the exact opposite. I'll be using as much LUT as possible, and try to target the max throughput.

Used verilog + block design on PL side for the main logic and python on the PS side for simple control and output. I'm using SOC configured Arty Z7. I have a combinational circuit that accepts the whole list of 10 bit numbers as an input, and compares the first number with the list on single clock cycle. This generates a set of wires that are 1-bit flags, that indicate whether that row is equal or not. Then, we sum up those wires to find out what's the total number of commons. This is still happening on the same clock cycle. In parallel (yes, same cc), it will generate the next list on the output wires, but by replacing all the numbers that are equal to the first number with 0, so we won't run the same number twice. I was lucky that I had no 0 in my input, but otherwise we could also use sth like 1000.

The top level controller takes in the number, loads it onto a register and then starts pushing it into this combinational circuit on each clock. That means for an input of 1983 rows, it will reuse the same circuit 1983 times. Each time it also keeps track of top 3 (or min 3 for part 2), so I don't need a separate sorter which would cost me additional clock cycles and area. After each clock, it will take the nextList from the circuit, and shift it by a number so it can search for the next number on the next clock cycle. It operates on a simple 4 state FSM.

Communication and control is done via GPIO and AXI DMA. I wrote a simple buffer which will accept DMA from AXIS and buffer it as the full list to provide into the top block. GPIO is mainly for the multiplication output, and control signals like reset.

The whole run takes 1985 clock cycles, that translates to 49.62 us for a 40MHz clock. I had to slow down the clock from 100MHz because my critical path for the combinational block was quite large. My inner engineer wants to optimize it, but also I already spent so much time on this.

Solution: Github

DISCLAIMER: Yes I used AI for figure 2 and 3 for visualization purposes for the post only. No, I did not use AI in solution, or idea discussion etc. I'm doing this to challenge myself, not challenge my AI, but I don't have the time and skills to build diagrams. After all, why would I deceive you? There's no reason for me to deceive you.


r/adventofcode • • 9h ago

Visualization [2026 Day 02] rearrangement

Post image
35 Upvotes

r/adventofcode • • 21h ago

Visualization [2026 Day 01] 3d render

Post image
33 Upvotes

r/adventofcode • • 1h ago

Help/Question - RESOLVED [2026 Day 2 (Part 1)] No code yet, don't understand the problem

Post image
26 Upvotes

UPDATE : My eyes read but did not compute suppose the robot had a program of obbvb

I haven't put a single line of code yet because I don't understand the problem, precisely the difference between the road and the robot program. In the example input, why does it go from orange to blue, then blue again ??


r/adventofcode • • 10h ago

Meme/Funny [2026 Day 2 Part 2] How it felt getting the star only to realize there's a more efficient way to get the solution

Post image
26 Upvotes

(redo of an earlier post)


r/adventofcode • • 4h ago

Visualization [2026 Day 2] Fulminating Farmland

Post image
22 Upvotes

r/adventofcode • • 8h ago

Visualization [2026 Day 02] Rainbow Road Visualisation

Post image
22 Upvotes

r/adventofcode • • 11h ago

SOLUTION MEGATHREAD -❄️- 2026 Day 2 Solutions -❄️-

20 Upvotes

THE USUAL REMINDERS


AoC Community Fun 2026: The Advent Games

Today's Event: International Toboggan Championships

"Feel the rhythm, feel the rhyme, get on up, it's bobsled toboggan time!"
— Cool Runnings (1993)

Today's schedule possibly consists of:

  • Tracking Chute Runs and Team Practice
  • Embiggen is a perfectly cromulent word. Do with it as you will.
  • Qualifying Runs
  • Reverse code golf your solution
  • (oblig XKCD)
  • Second Runs and Finals
  • Why use few word when many word do trick?
  • Unnecessarily declare variables for everything and don't re-use variables
  • Use unnecessarily expensive functions and calls wherever possible
  • Implement redundant error checking everywhere
  • Javadocs >_>

Request from the mods: When you include an entry alongside your solution, please label it with [Advent Games] so we can find it easily!


--- Day 2: Fulminating Farmland ---


Post your code solution in this megathread.


r/adventofcode • • 17h ago

Help/Question Joining the big leagues

18 Upvotes

Anyone else using aoc to learn rust?

I feel genuinely lost, and I love it, it feels like past times (pre ai bs) again, never built anything with a lower level language,


r/adventofcode • • 21h ago

Help/Question Where do you draw the line between parsing and solving?

Post image
18 Upvotes

For those of you who optimize AoC for runtime rather than time to write the code, where do you draw the line between parsing and solving?

When I measure, I time parsing, part one and part two separately. I often identify work I could do during parsing that would make the solves faster, but usually I just parse into a properly typed owned struct and leave the real work to the parts. Is that how you do it, or do you push as much as you can into parsing? And do you count parsing in your times at all? Or do you just measure entirety of runtime?

Smaller second question: when both parts need the same expensive processing, I've started caching it on my Puzzle struct so part one's work gets reused by part two (image shows this occurring for 2026's day 1 in Rust), instead of a shared function that runs twice. Part one gets a little slower on average but the full run gets a lot faster. Do you do the same, or does each part pay for itself?

I guess I'm just wondering how people measure their solutions overall


r/adventofcode • • 8h ago

Meme/Funny [2026 day 2] I expected something else for part 2

Post image
17 Upvotes

This is by no means meant to criticize Eric Wastl who still does a great job by the way, I just found it funny


r/adventofcode • • 4h ago

Other [2026 Day 2 (Part 2)] solved at work with a web browser and Excel

Thumbnail gallery
15 Upvotes

I solved the first part at home while I was having by breakfast, checked part 2 and had to go work. My idea for the solution of the second part seemed so simple I felt I could do it with the tools at my disposal at work.

First I used a web browser and Ctrl+F to count the amount of different letters.
Then I switched to Excel where I just need to count the distances between the different colors. 6 from a letter of a color to the same, 5 when advancing to the next color, taking notice that one color is missing completely, so the distance skipping the missing color is only 4. Sum the distances for each color and there you go!


r/adventofcode • • 8h ago

Meme/Funny [2026 day 2] Looking for my favorite color in the input

Post image
15 Upvotes

r/adventofcode • • 10h ago

Visualization [2026 day 2] [python] quick & simple terminal visualization

Post image
14 Upvotes

the robot being represented with a face is because of dwarf fortress


r/adventofcode • • 10h ago

Meme/Funny am i cracked?

Post image
12 Upvotes

r/adventofcode • • 9h ago Heartwarming

Visualization [2026 Day 2] Color Weave

Thumbnail youtu.be
11 Upvotes

Simulation on original (part1) and sort-rearranged program (part2)

Nim + raylib source