What is Nostr?
jpages /
npub1mr0…k4s2
2023-12-16 22:54:34

jpages on Nostr: Advent of Code - Day 16 Part 1 : 1h33:20 (rank 5030) Part 2 : 1h44:15 (rank 4656) ...

Advent of Code - Day 16

Part 1 : 1h33:20 (rank 5030)
Part 2 : 1h44:15 (rank 4656)

This problem was easier than expected.

For Part 1, I used a recursive algorithm for the beam simulation (whereas many people used BFS), with bitwise operations to accelerate the code. This part executes in 800 µs.

In Part 2, I simply repeated this process for every border tile (440 for the input data), and got my best ranking so far.

#AdventOfCode
Author Public Key
npub1mr0wam5le7yta87mshdg2jrflgv9t0fq6gl4gkvaejw54k6z78gq9ek4s2