this post was submitted on 24 Dec 2024
28 points (96.7% liked)

Advent Of Code

1009 readers
16 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
 
top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 month ago (1 children)

Good, although it took some time. Actually, I got my personal best global rank on that problem.

[–] mykl 1 points 1 month ago (1 children)

Haha, I spent about two hours fiddling about in the debugger and drawing bad diagrams to get an answer. I just checked and it turns out that I also got my personal best ranking on it too, though I'm not sure it should count :-)

[–] [email protected] 1 points 1 month ago (1 children)

That just makes sense -- the top-1k are competitive programmers, and today's puzzle had nothing to do with competitive programming :)

[–] mykl 1 points 1 month ago (1 children)

True, I've just been looking at the comments on the other place, and pretty much everyone there seems to have resorted to figuring it out manually too.

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

If it had been more than 4 swaps, or larger distance swaps, this could have been a nightmare challenge.

[–] Acters 2 points 1 month ago

haha, there are way too many days where I end up with code that works with the sample but fails the real input. its just not really possible to expect the sample and description to properly prepare you. oh well, it is what it is.