this post was submitted on 24 Dec 2024
29 points (96.8% 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 2 months ago (1 children)

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

[–] [email protected] 1 points 2 months 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 2 months ago (1 children)

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

[–] [email protected] 1 points 2 months 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.

[–] CameronDev 2 points 1 month ago

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