What is Nostr?
jpages /
npub1mr0…k4s2
2023-12-17 22:33:28

jpages on Nostr: Advent of Code - Day 17 Part 1 : 7h45:45 (rank 7415) Part 2 : 10h30:44 (rank 8213) ...

Advent of Code - Day 17

Part 1 : 7h45:45 (rank 7415)
Part 2 : 10h30:44 (rank 8213)

Today's problem was really tough, as I expected. This was the classic pathfinding problem.

I struggled and I spent way too much time on my Dijkstra algorithm implementation. My first working version was too slow (20 seconds for Part 1 !), and I had to reengineer it completely.

After the stars validations, I improved the performance. Part 1 now runs in 100 ms and Part 2 in 200 ms.

#AdventOfCode
Author Public Key
npub1mr0wam5le7yta87mshdg2jrflgv9t0fq6gl4gkvaejw54k6z78gq9ek4s2