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

Advent Of Code

920 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 month ago (4 children)

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

[–] mykl 1 points 1 month ago (3 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 (2 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.