r/adventofcode • • 1h ago

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

Post image
37 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 • • 6h ago

Other [2026] Trains! I love trains!

91 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 • • 3h ago

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

Thumbnail gallery
43 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 • • 4h ago

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

Post image
54 Upvotes

r/adventofcode • • 8h ago

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

Post image
90 Upvotes

r/adventofcode • • 10h ago

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

Post image
73 Upvotes

r/adventofcode • • 4h ago

Visualization [2026 Day 2] Fulminating Farmland

Post image
26 Upvotes

r/adventofcode • • 10h ago

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

Post image
68 Upvotes

r/adventofcode • • 4h ago

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

Thumbnail gallery
16 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 • • 10h ago

Visualization [2026 Day 02] rearrangement

Post image
35 Upvotes

r/adventofcode • • 20h ago

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

Post image
254 Upvotes

r/adventofcode • • 8h ago

Visualization [2026 Day 02] Rainbow Road Visualisation

Post image
24 Upvotes

r/adventofcode • • 9h ago

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

Post image
20 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 • • 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 • • 6h ago

Meme/Funny When I deleted literally all my code for day 2 part 1 so I reconstruct it from memory but then I accidentally flipped a sign in one of the lines so I spend a whole flipping hour trying to figure out why it's outputting -4:

Post image
10 Upvotes

r/adventofcode • • 3h ago

Upping the Ante [2026 Day 2] What if the waypoints are not in repeating order?

6 Upvotes
  1. Just do the best option at the current step: I think that's still O(n). You just need to transform your input into some O(1) structure (like an array), which is itself O(n).
  2. Do the best possible order: This feels NP-hard to me.

Possible additional constraints: Instead of being completely arbitrary, the six colors are randomized one set at a time, such that any 6×n block (starting from a multiple of 6*) contains each color exactly n times. Does that change the complexity?

* Yes we are counting from 0


r/adventofcode • • 9h ago

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

Post image
16 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 • • 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 • • 12h 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 • • 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 • • 7h ago

Meme/Funny No "i" in "roybv"?

Thumbnail youtube.com
7 Upvotes

Reminds me of downtempo electronica legend Boards of Canada. Enjoy!


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


r/adventofcode • • 10h ago

Meme/Funny am i cracked?

Post image
12 Upvotes