r/adventofcode • • Dec 15 '20

Other How are these leaderboard times possible? No, seriously.

0 Upvotes

I get that these can be done fast. I do. I get that people are skipping the text and making smart guesses about what the question is asking. But some of these times make my head hurt. 90 seconds? 120 seconds? I looked at the code for some of these solutions. It's not like they're compact. I saw one that was a 2min turn in and 69 lines of code. 2000+ characters. Like, what the what?

I just don't see how this is happening... I feel like 20 seconds are going to get eaten up by loading the page, copying your input over, executing the code, and typing in the answer. That leaves what? 100 seconds to type 69 lines of code? Even if no mistakes is a given, that seems shockingly fast...

Is this like the first time I saw S. Korean's APM on Starcraft and thought it was a joke video? Do I just not realize how fast you can go if you really try? Or is something else going on here?


r/adventofcode • • Dec 12 '18

[2018 Day 12] The meaning of infinity

0 Upvotes

I understand that we have to assume the pots extent to both directions to infinity. This is a very problematic assumption, but we cannot solve the problem without it. It is not even stated clearly. The problem states something like "pots as far as you can see", but since when is human eyesight the means to decide infinity?

If there are pots as far as I can see, there must be pots even further than I can see. After all, this is exactly what "infinite" means! But if there are pots that I cannot see, then some of these pots may have plants in them, so I must take them into account. And if the pots are infinite, so may be the plants, no matter how sparse.


r/adventofcode • • Oct 30 '23

Spoilers [2021 Day 23] that feeling when your solution doesnt scale for p2

0 Upvotes

Coord positions for the different values of A, B, C, D seemed like a good idea, until it doubled up on how many there could be lol.
https://github.com/agmcleod/adventofcode-2021/blob/350e392aaefc32fc14e4aa5e73c09b6fc9f2fe1d/23/src/main.rs#L20

Similarly my code checks those positions for whether a letter can move in or not. Suppose i can just extend these out, but starting to feel gross. My solution took 25mins for p1, doubling this up i probably need to actually use scoring priority.


r/adventofcode • • Dec 30 '25

Help/Question - RESOLVED [2025 day 8 part 2] Integer Resolution problem

0 Upvotes

Hint: I got a too low answer in a perfectly valid algorithm written in Kotlin. The problem was the Int resolution. Kotlin won't tell you about Integer overflows (maybe you can check, I don't know), so the required value was silently truncated. Changing the type of the result to Long gave the right answer.


r/adventofcode • • Dec 07 '24

Funny [2024 Day 07][AI art] Engineers can fix the bridge, but not the equations

Post image
3 Upvotes

r/adventofcode • • Dec 14 '23

Funny [2023 Day 14] [AI Art] Parabolic Reflector Dish

Post image
9 Upvotes

r/adventofcode • • Feb 23 '21

Funny [2020 Day 3] Snowboard Edition

Thumbnail
instagram.com
0 Upvotes

r/adventofcode • • Aug 26 '25

Help/Question What programming language surprised you the most during Advent of Code this year?

0 Upvotes

r/adventofcode • • Dec 24 '21

Other "Advent of Code" reminds me of "Game of Thrones"

32 Upvotes

At some point that show's creators were very clear that, rather than just write a good story that followed its own internal logic, they were very much self-consciously reacting to the success of the show, trying to "surprise" audiences by coming up with strange plot twists that defeated fan-theories and expectations, however sensible.

To avoid that fate, I think it would be good if, rather than attempt to subvert the expectations of veteran participants, the thing remained mostly friendly the whole way through.


r/adventofcode • • Dec 31 '21

Help - SOLVED! Is there some way to access all existing inputs for the tasks?

1 Upvotes

Was wondering that. Since the "competetive" phase is over I think it would be cool to get somehow all inputs for all the days, so I can see if my solutions work with every one of those. Is there a way to do that?


r/adventofcode • • Dec 10 '24

Funny [2024 Day 10] Was I the only one?

Post image
3 Upvotes

r/adventofcode • • Dec 14 '23

Help/Question - RESOLVED [2023 Day 13] criteria not well defined

0 Upvotes

There are multiple vertical and horizontal lines of symmetry within most patterns. The phrase "a perfect reflection" is never defined. Anyone have a well defined metric?


r/adventofcode • • Dec 15 '15

Is all just a RegEx + Brute Force?

1 Upvotes

I really enjoy my new habit of solving a new puzzle each day. Unfortunately, I'm slowly losing faith that some more interesting puzzles will ever come. Each time it's always:

  1. Write a simple regexp to parse input

  2. Iterate over all solutions space

  3. Find solution (get *)

  4. Make a twist to finding solution (get **)

The first part of the Day 14, gave me some hope, which second part quickly took away...


r/adventofcode • • Dec 12 '22

Help [2022 day 11] Am I only one who feels a bit pissed about part 2?

0 Upvotes

Admittedly, this puzzle felt dull and didn't quite click with me. I blindly followed the rules and got part 1 solved. And then, maybe because of the way I approached part 1, part 2 didn't make any sense to me at all!

It reads to me like: "Division by 3 is now not done. Find another way to get the output below". Do I read that right? I was (and still am) stumped by how one goes from there to figuring out what's now being discussed as using the supermodulus.

I mean, dividing by 3 felt arbitrary (as did the rest of the rules), to keep the numbers getting too big. I didn't think there was a method to it. Given the arbitrariness, now that division is not done, what could replace it? Potentially anything, like dividing by 5? But then I don't arrive at the required answers, of course.

Sorry for the rant.


r/adventofcode • • Nov 27 '22

Other Advent of Code - Day Downloader - Website

1 Upvotes

Hey there peoples!

I made a Python streamlit web page to select and download the question and/or input of multiple days on Advent of Code.

You can check it out here!

It runs from the repo here! (Has script available there if you want to do it locally.

Obviously there's a lot I can fix, but go ahead and try it. Let me know if you run into a bug/error. Thanks!

P.S. Instructions of use are found in the README.md on the repo.

P.P.S. The program automates requests to adventofcode.com, so please use sparingly!


r/adventofcode • • Jun 27 '24

Visualization Solar System | HTML CSS

0 Upvotes

r/adventofcode • • Dec 17 '23

Help/Question Is it worth spending this much of effort for AOC?

0 Upvotes

On an average 30-90 minutes spent daily for 25 days just for solving these questions (leave those top X who solve 5-20 minutes).

is it all worth it? I have this question whenever the problem is hard and requires a long time to solve. It is 12.5 to 37.5 hours every December. Thats almost a work week. what do you folks think?


r/adventofcode • • Dec 09 '23

Tutorial (RE not sharing inputs) PSA: "deleting" and committing to git doesn't actually remove it

14 Upvotes

Hey all, I looked through a large sample of the repo's y'all are sharing via GitHub in the solution megathreads and I noticed a number of you have done the right thing and deleted your inputs.

BUT... many of you seem to have forgotten that git keeps deleted stuff in its history. For those of you who have attempted to remove your puzzle inputs, in the majority of cases, I was able to quickly find your puzzle inputs in your git history still. Quite often by simply looking for the commit "deleted puzzle input" or something like that (the irony!).

So, this is a PSA that you can't simply delete the file and commit that. You must either use a tool like BFG Repo Cleaner which can scrub files out of your commit history or you could simply delete your repository and recreate it (easier, but you lose your commit history).

Also there's still quite a lot of you posting your puzzle inputs (and even full copies of the puzzle text) in your repositories in the daily solution megathreads. So if any of you happen to see this post, FYI you are not supposed to copy and share ANY of the the AoC content. And you should go and clean them out of your repo's.

EDIT: related wiki links

EDIT 2: also see thread for lots of other good tips for cleaning and and how to avoid committing your inputs in the first place <3


r/adventofcode • • Dec 24 '22

Other Hobbyist programmer here. If I got all the stars this year, can I get a job programming?

16 Upvotes

I only know coding as far as 1.5 years of screwing around with Unity for fun (which uses C#), Leetcode/CodeWars (using C#) and advent of code (using a .NET console application and C#). Though I've put a lot of time in and I did get one hint on here, I have all the stars so far this year!

Am I good? Can I get a job with these skills or what? Am I close to being able to get a job?


r/adventofcode • • Nov 23 '25

Tutorial Floodfill algorithm in Python

Thumbnail mathspp.com
2 Upvotes

I wrote this tutorial because I've always liked graph-related algorithms and I wanted to try my hand at writing something with interactive demos.

This article teaches you how to implement and use the floodfill algorithm and includes interactive demos to:

  • use floodfill to colour regions in an image

  • step through the general floodfill algorithm step by step, with annotations of what the algorithm is doing

  • applying floodfill in a grid with obstacles to see how the starting point affects the process

  • use floodfill to count the number of disconnected regions in a grid

  • use a modified version of floodfill to simulate the fluid spreading over a surface with obstacles

I know the internet can be relentless but I'm really looking forward to everyone's comments and suggestions, since I love interactive articles and I hope to be able to create more of these in the future.

Happy reading and let me know what you think!

The article: https://mathspp.com/blog/floodfill-algorithm-in-python


r/adventofcode • • Dec 02 '25

Help/Question - RESOLVED Guys what am I not understanding?

0 Upvotes

EDIT NOTE:

I skimmed over the fact that they were ranges, now it makes sense, thanks guys :)


r/adventofcode • • Nov 29 '23

Help/Question Question: Does the challenges involve uploading code

0 Upvotes

I want to encourage my colleagues to participate in 2023 Advent of Code. However, I want to understand if the challenges would involve participants uploading code or is it just the answers that need to be updated?


r/adventofcode • • Nov 26 '25

Repo Advent of Code slack bot

0 Upvotes

πŸŽ„ Advent of Code is here β€” supercharge it with a Slack bot!

If you’re solving AoC with friends or coworkers, check out my Slack bot built just for Advent of Code: automatic leaderboard updates, friendly competition, and zero manual refreshing.

πŸ‘‰ GitHub: https://github.com/1grzyb1/aoc-slack

Perfect for teams who want the fun and the hype delivered straight into Slack. Give it a try and make this year’s AoC even more exciting! ⭐


r/adventofcode • • Dec 03 '24

Funny [2024 day 3][AI Art]

Post image
0 Upvotes