r/adventofcode • • 3h ago

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

Post image
41 Upvotes

r/adventofcode • • 3h ago

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

Post image
35 Upvotes

r/adventofcode • • 14h ago

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

Post image
215 Upvotes

r/adventofcode • • 8h ago

Other Give help by making test cases!

46 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 • • 14h ago

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

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

Visualization [2026 Day 02] rearrangement

Post image
12 Upvotes

r/adventofcode • • 1h ago

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

Post image
8 Upvotes

r/adventofcode • • 3h 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
11 Upvotes

(redo of an earlier post)


r/adventofcode • • 3h ago

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

Post image
10 Upvotes

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


r/adventofcode • • 3h ago

Meme/Funny am i cracked?

Post image
9 Upvotes

r/adventofcode • • 1h ago

Visualization [2026 Day 02] Rainbow Road Visualisation

Post image
6 Upvotes

r/adventofcode • • 1d ago

Meme/Funny [2026 Day 1] Claim yours here!

Post image
408 Upvotes

r/adventofcode • • 2h ago

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

Post image
6 Upvotes

r/adventofcode • • 2h ago

Visualization [2026 Day 2] Color Weave

Thumbnail youtu.be
6 Upvotes

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

Nim + raylib source


r/adventofcode • • 5h ago

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

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

Visualization [2026 Day 2] Rainbow Road Race Visualization

Post image
4 Upvotes

r/adventofcode • • 2h ago

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

Post image
4 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 • • 11h 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 • • 14h ago

Visualization [2026 Day 01] 3d render

Post image
32 Upvotes

r/adventofcode • • 3m ago

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

Thumbnail youtube.com
2 Upvotes

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


r/adventofcode • • 6h ago

Help/Question - RESOLVED Python Solution Gives correct solution for part 1 but not part 2

6 Upvotes

Hi, I'm completely stuck on what I've done wrong for the 2026 day 1. I've done this solution about 3 different ways at this point, and I keep getting the correct solution for part 1 but incorrect for part 2 (says my solution is too small).

I'm not quite sure where to go at this point.

import math
from collections import Counter

INPUT: list[int] = [int(line.strip()) for line in open("2026/day01.txt")]
COUNTS = Counter(INPUT)

def max_and_min():
    # find top 3 occurrences and bottom 3 occurrences
    maximums: list[int] = []
    minimums: list[int] = []
    while len(maximums) < 3:
        current_max_val = max(COUNTS, key=COUNTS.get)
        current_min_val = min(COUNTS, key=COUNTS.get)

        maximums.append(current_max_val)
        minimums.append(current_min_val)

        COUNTS.pop(current_max_val)
        if current_min_val != current_max_val:
            COUNTS.pop(current_min_val)

    return (math.prod(maximums), math.prod(minimums))

print(max_and_min())

This code returns the correct solution for part 1, as well as a correct solution for the test input for part 1 and 2. I cannot fathom why it would be incorrect for the actual input at this point. I've tried it with Counter, I've tried manually creating the dictionary instead of using Counter, I've tried manually finding the minimums and maximums with a for loop, and they all yield the exact same results.

If someone could at least point me in the right direction, I don't want to just grab a solution from the megathread and call it a day.

EDIT:
I've never been more ashamed. I just put in the exact same output I got from my solution, and it got accepted by the website, which means I wasn't copy+pasting it in correctly. Happens to the best of us. Thanks everyone for the advice though, my solution looks much snazzier now 😎

import math
from collections import Counter

INPUT: list[int] = [int(line.strip()) for line in open("2026/day01.txt")]
COUNTS = Counter(INPUT)

def max_and_min():
    # find top 3 occurrences and bottom 3 occurrences
    maximums: list[int] = [n[0] for n in COUNTS.most_common()[:3]]
    minimums: list[int] = [n[0] for n in COUNTS.most_common()[-3:]]

    return (math.prod(maximums), math.prod(minimums))

print(max_and_min())

r/adventofcode • • 58m ago

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

2 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 • • 59m 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 • • 1h ago

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

Post image
2 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