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
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