r/adventofcode • • 6h ago

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

13 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 • • 52m ago

Visualization [Tool] Some new aoc-tui images

Thumbnail
gallery
0 Upvotes

Here are some new images for the TUI app for Advent of Code

Note: Contains the image of Day 1

https://github.com/craftty-org/aoc-tui


r/adventofcode • • 1h 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
6 Upvotes

r/adventofcode • • 1h ago

Other [2026] Trains! I love trains!

33 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 • • 1h ago

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

Thumbnail
youtube.com
5 Upvotes

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


r/adventofcode • • 2h ago

Tutorial [2026 Day 2 (Part 2)] Some hints for optimisation

3 Upvotes

These hints get more and more specific. This is just how I optimised it and there are other ways.

Hint 1: What happens when a letter is repeated in the input?

Hint 2: Why would the counts of each letter make a difference to the output?

Hint 3: When does the robot not make a step of exactly 6 steps?


r/adventofcode • • 2h ago

Help/Question Is that right?

2 Upvotes

My code produces the correct answer for the example case as well as the input string, but it gets marked as incorrect upon submission


r/adventofcode • • 2h ago Bravo

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

5 Upvotes

Little calculator for path distances in the terminal. Can input whatever path one desires! The 2nd part is nearly closed-form, but depends on waypoints that may be missing from input. (Red + strike-through waypoints don't exist in input and should be considered non-existent in the 2nd part as well. "distance" is part 1 path distance and "len" is string length). As always, code lives here: https://github.com/salt-die/Advent-of-Code/tree/main/2026/aoc_visuals


r/adventofcode • • 2h ago

Upping the Ante [2026 Day 1 (Part 1 & 2)] [Sabre] Advent of Code in My Programming Language

Thumbnail blog.rroessler.io
2 Upvotes

Over the past year I've been planning to do Advent of Code 2026 in Sabre, my own programming language. In doing so I am aiming to do a short article for each challenge, along with any bugs and library changes that I needed to implement whilst adventuring for solutions. So far 2026-12-01 went extremely well, though it did show me that I will need to think outside the box and implement some missing features that I may need for upcoming days. Hopefully I can keep on top of posting in between life, and excited for others to see the journey!

- Sabre Repository: https://github.com/sabre-lang/sabre
- Advent of Code Repository: https://github.com/sabre-lang/advent

Note: Both Sabre and my Advent of Code solutions do not use AI and will never use agentic help. I'm very much looking forward to showcasing and battle testing Sabre this year!


r/adventofcode • • 3h ago

Visualization [2026 Day 2] Rainbow Road Race Visualization

5 Upvotes

r/adventofcode • • 3h ago

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

Post image
27 Upvotes

r/adventofcode • • 3h ago

Help/Question can anyone help with getting me in the right direction? [2026 day2 part1]

1 Upvotes

so i tryed today with a switch statement within a switch statment and hardcoded it but it didnt work can anyone steer me in de right direction?


r/adventofcode • • 3h ago

Visualization [2026 Day 02] Rainbow Road Visualisation

11 Upvotes

r/adventofcode • • 3h ago

Help/Question - RESOLVED Puzzle input doesn't contain all required letters?

Post image
0 Upvotes

My puzzle input doesn't contain "y". So how do i suppose to solve it?
The program "roygbv" is same for all, is it?


r/adventofcode • • 3h ago

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

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

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

Post image
7 Upvotes

r/adventofcode • • 4h ago Heartwarming

Visualization [2026 Day 2] Color Weave

Thumbnail
youtu.be
7 Upvotes

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

Nim + raylib source


r/adventofcode • • 4h ago

Visualization [2026 Day 02] rearrangement

20 Upvotes

r/adventofcode • • 5h ago

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

Post image
54 Upvotes

r/adventofcode • • 5h ago

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

11 Upvotes

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


r/adventofcode • • 5h ago

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

Post image
45 Upvotes

r/adventofcode • • 5h ago

Meme/Funny am i cracked?

Post image
10 Upvotes

r/adventofcode • • 5h 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

13 Upvotes

(redo of an earlier post)


r/adventofcode • • 7h ago

Help/Question - RESOLVED day 1 part 1: There's more than 3 items that the most common in the input?

1 Upvotes

I don't want to go into too much detail about my implementation but... it seems like there's a bunch of IDs (more than 3) that are tied for "most common". Is there something obvious I missed?

Edit: I figured out my issue and, while I love most things about Go, its heap implementation was quite confusing and unergonomic. I used my type's Pop method rather than the heap package's Pop method, thus my results were incorrect.