this post was submitted on 26 Dec 2024
79 points (100.0% liked)

Advent Of Code

1012 readers
2 users here now

An unofficial home for the advent of code community on programming.dev!

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

AoC 2024

Solution Threads

M T W T F S S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25

Rules/Guidelines

Relevant Communities

Relevant Links

Credits

Icon base by Lorc under CC BY 3.0 with modifications to add a gradient

console.log('Hello World')

founded 2 years ago
MODERATORS
79
Preliminary Leaderboard (programming.dev)
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 

Well, that was a month. Congrats everyone who has reached the end, and thanks to everyone who has contributed solutions and advice.

Sometime in January I will create a megathread for visualizations. If anyone has any other ideas, happy to hear them, otherwise, take a well earned 11 month rest until next year :D

top 24 comments
sorted by: hot top controversial new old
[–] iAvicenna 11 points 2 months ago (2 children)

What do you mean final :( I am at 20 and am planning to at least do a couple more :p before the new year.

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago) (1 children)

Exactly, I'm going to be trying to tick a few more off if I have time

[–] [email protected] 2 points 2 months ago

That's what I told myself last year :D good luck!

[–] [email protected] 2 points 2 months ago (2 children)

My apologies, keep going and ill update the post on new years eve. I dont think you'll managed to reach the top spot though :D

[–] iAvicenna 4 points 2 months ago (1 children)

for sure not but maybe I will make it to the screenshot :/

[–] [email protected] 3 points 2 months ago (1 children)

Tbh, I cut the screenshot off there because it fit myself in, so its only fair I extend for the update. Sadly I am the second Cameron on the list :(

[–] iAvicenna 2 points 2 months ago* (last edited 2 months ago) (1 children)

tbh even if I solve all the remaining 5 problems, I will likely not even pass 30!

[–] [email protected] 2 points 2 months ago (1 children)

If I sort it by global score, we are all tied for 2nd :D

[–] iAvicenna 2 points 2 months ago* (last edited 2 months ago)

wow we have someone with a positive global score in the leader board! well I have solved everything I can for now: all except 20,21,24 part2. part2 of these problems made me go "oh for fucks sake". So maybe I will just steep for a while with these questions and see if I can come up with something without having to look anywhere.

[–] iAvicenna 1 points 2 months ago

woho did the last question on the first day of the new year and managed to up my position to 27...

[–] [email protected] 10 points 2 months ago

Hey that's me! Congrats to everyone!

[–] [email protected] 7 points 2 months ago

It was nice to see some of the same faces (as it were) again from last year!

Also great to see more Haskell solutions, and props to those crazy enough to write in J and Uiua.

[–] [email protected] 5 points 2 months ago (1 children)

Congrats to everyone! Not first year, though first year of at least trying every problem. Burnout definitely got me by day 20 though, ha ha ha... There was a lot of ugly (readability a backseat to "code writing speed"), a lot of bad (don't ask how long the test suite has to run for), but an occasional gem of good (my day 19 solution is some of the most dopamine from just writing code I've gotten. I'm only used to getting that much when it actually gets merged). I learned a little through the problems themselves, but I did learn a lot about writing macro_rules macros by creating a test suite generator and a benchmark generator. I also picked up some useful Git knowledge like --allow-unrelated-histories, interactive rebasing, --name-only, and using the reflog to help recover data (don't ask what happened on day 23). This year was a personal success. Till next year!

[–] [email protected] 1 points 2 months ago

I liked 19 as well. Adding memoization and seeing the runtime drop to near zero was so satisfying.

My main learning takeaway was that I am not fully aware of all the various inbuilt iterators in rust, so exploring those was quite valuable.

[–] [email protected] 5 points 2 months ago (1 children)

Yay, I made it in the screenshot! Thanks everyone, this was my first year and it was a lot of fun!

[–] [email protected] 5 points 2 months ago (1 children)

Made it in the screenshot and beat me :). Congrats on finishing, in my mind, that's the hardest part!

[–] VegOwOtenks 3 points 2 months ago (1 children)

I alwqys assumed you were Cameron Wu, who is?

[–] [email protected] 2 points 2 months ago

No idea, maybe they aren't active here?

[–] [email protected] 2 points 2 months ago (1 children)

Nice! Though I'm not sure if I belong on the leaderboard. There were a couple solutions I had to look up spoilers / inspiration for. My first year, next year I hope to manage it with no need to check things.

[–] [email protected] 3 points 2 months ago (1 children)

I dont think that is cheating, its about learning, and seeking help/inspiration is a valid way to learn. As long as you aren't just using an LLM or copying the code entirely, I think you belong on the leaderboard.

[–] [email protected] 2 points 2 months ago (1 children)

You're right. And my library aversion definitely made it harder. I think the day I learned the most was day 19, the towel one. Seemed simple at first but I just couldn't wrap my mind around it, looked at a few solutions and one of the dynamic programming one solutions just blew my mind. Took me an hour or so to just wrap my head around it and then once I understood it I was able to write that abomination I posted from scratch (well, without needing to reference what I studied).

[–] iAvicenna 1 points 2 months ago

where did you see that solution in the lemmy topic?

[–] VegOwOtenks 1 points 2 months ago (1 children)

Not the first year I participate but the first year I finished, 2021 was my all-time high so far with 42 stars when I was just starting oit and learning python. Knowing that there were more people in the same boat and that there was a competition kept me going, although the competiton also induced a lot of stress, not sure whether I want to keep the competitive attitude.

Thanks to everyone for uploding solutions, Ideas and program stats, this kept me optimizing away, which was a lot of fun!

[–] [email protected] 4 points 2 months ago

I dont care for the global leaderboard, its mostly LLMs and competitive programmers, who are way too fast. "Competing" against everyone here is much less stressful and more enjoyable.

This was my first finish as well,last year I bailed after day 12.