What is Nostr?
jpages /
npub1mr0…k4s2
2023-12-18 22:52:09

jpages on Nostr: Advent of Code - Day 18 Part 1 : 4h09:59 (rank 8314) Part 2 : 4h37:12 (rank 5002) ...

Advent of Code - Day 18

Part 1 : 4h09:59 (rank 8314)
Part 2 : 4h37:12 (rank 5002)

It's a shame I started two hours late this morning, as I coded amazingly well.

I used the Shoelace theorem for both parts, but without the Pick formula I discovered after the stars validation on Reddit.

The code runs in linear time (800 µs for each part).

For Part 2, all I needed to add was a new parser.

#AdventOfCode
Author Public Key
npub1mr0wam5le7yta87mshdg2jrflgv9t0fq6gl4gkvaejw54k6z78gq9ek4s2