Advent of Code 2022 Week 2

Christof Reimers

305 words, 2 mins

Another week has passed, how was it?

Okay, at this point I haven't uploaded the code for the last 5 days. But believe me, I did it. The code will be uploaded.

Today marks the day where I solved my last puzzle last year. I hope I will continue past this point.

On day 8, I had a genius solution. I just apply everything from left to right and rotate the board 4 times. That was quite easy to implement and not really a big challenge.

Day 9 was a funky one, simulating the ropes. In the end it was just finding all the edge cases, nothing too complicated.

Day 10 was definitely the best one yet. The first half was quite easy and I expected more instructions to be added. But no, it was used to visualize text! Great puzzle!

I hated day 11. The first part was not that hard, just simulating the monkeys. The second part, oh boy! It was as easy as using modulo but I definitely did not found the solution. I had to look on reddit. Maybe it was just me being stupid but this one was really hard.

Not like day 11, I actually liked day 12. In the end I just settled on a BFS (which at first I didn't got to work as I overlooked something). At first I wanted to implement A* as I had never implemented it but BFS worked as good.

Day 13 again was really easy, nothing special. I just parsed the input with JSON and compared them recursivly.

And today was interesting. The first half was easy, the second just slow. And I mean really slow. I wanted to optimize it but as I started optimizing it, the console spit out the solution.

I guess that's it. Till next week (hopefully).