Spyke
adventofcode·Advent of Codebymykl

Nadvent of Code - 2022 Day 20

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.

Today came as a welcome relief after two tricky days! We had to jumble a file according to some simple rules. The biggest challenge was interpreting the instructions correctly; the solution itself took only a few lines. Part two just added a key and increased the number of iterations. My original approach still ran in under a second (0.7s) so I didn't bother looking into it any further, and just enjoyed the free time :-)

https://dartpad.dev/?id=2ae60c3e3a6ae2edf57a5eff9c298d8dOpen linkView original on lemmy.world

Not sure what caused the downvotes here? Did the solution not work on some test data? Or did people hate the idea of me having more free time?

1

You reached the end

Nadvent of Code - 2022 Day 20 | Spyke