this post was submitted on 05 Nov 2023
2 points (75.0% liked)

Advent of Code

293 readers
1 users here now

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.

https://adventofcode.com

founded 2 years ago
MODERATORS
 

As a warmup for this year's Advent of Code, I'm re-reading and posting my solutions to last year's challenges. You can read, run and edit today's solution by following the post link.

After a few days of gentle introductory challenges, things ramped up a little today. Not due to the difficulty of the puzzle itself, but the unhelpful way in which the input data was formatted :-). Given that increase in difficulty, I think a lot of people were expecting part 2 to be a Towers of Hanoi challenge, but no, it was just a simple change to part 1.

top 1 comments
sorted by: hot top controversial new old
[–] mykl 1 points 1 year ago

BTW, you will need to be careful to preserve the trailing whitespaces on the first few lines iof the testdata string if you edit it, as my code lazily relies on it being there.