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
Published at
2023-12-18 22:52:09Event JSON
{
"id": "95da6aa351c85a965c5f12cc63bb51ad7259986d3776dc93e4d418081921d895",
"pubkey": "d8deeeee9fcf88be9fdb85da854869fa1855bd20d23f54599dcc9d4adb42f1d0",
"created_at": 1702939929,
"kind": 1,
"tags": [
[
"t",
"adventofcode"
]
],
"content": "Advent of Code - Day 18 \n\nPart 1 : 4h09:59 (rank 8314)\nPart 2 : 4h37:12 (rank 5002)\n\nIt's a shame I started two hours late this morning, as I coded amazingly well.\n\nI used the Shoelace theorem for both parts, but without the Pick formula I discovered after the stars validation on Reddit.\n\nThe code runs in linear time (800 µs for each part).\n\nFor Part 2, all I needed to add was a new parser.\n\n#AdventOfCode",
"sig": "3bdd02c5889504f21f31d3e09e00af79d793f88fa5f6d7ccab329d28f29ac2c52f7bb417566523f85dd4a3e3814654d5af078f13e24b921781bf99ff775f310a"
}