What is Nostr?
jpages /
npub1mr0…k4s2
2023-12-21 18:37:17

jpages on Nostr: Advent of Code - Day 21 Part 1 : 05h17:57 (rank 10217) Part 2 : 10h27:42 (rank 4411) ...

Advent of Code - Day 21

Part 1 : 05h17:57 (rank 10217)
Part 2 : 10h27:42 (rank 4411)

I started very late, but I worked fast for Part 1 (maybe half an hour). I used a very classic BFS algorithm.

Part 2 was much harder, but I found the correct idea (find a cycle in the reachable cells growth sequence) faster than yesterday, and I got my best rank so far this year.

Part 1 runs in 20 ms, and Part 2 in 200 ms.

#AdventOfCode
Author Public Key
npub1mr0wam5le7yta87mshdg2jrflgv9t0fq6gl4gkvaejw54k6z78gq9ek4s2