jpages on Nostr: Advent of Code 2023 - Day 7 Part 1 : 5h16:30 (rank 23536) Part 2 : 5h52:59 (rank ...
Advent of Code 2023 - Day 7
Part 1 : 5h16:30 (rank 23536)
Part 2 : 5h52:59 (rank 19668)
I started very late, and I needed more than 2 hours to solve the part 1. I even submitted a wrong answer (the first time this year) as I had not seen that the rules for sorting hands were different from regular poker rules.
On the contrary, part 2 was quite easy. I took additional time to refactor the code, and improve its performances, reducing the runtime from 200 ms to 70 ms.
#AdventOfCode
Published at
2023-12-07 17:56:24Event JSON
{
"id": "87c198b19e9ac07a7ce063ae4abb82a0774c7f0c82bfacd8e8e73a7802fe8c7f",
"pubkey": "d8deeeee9fcf88be9fdb85da854869fa1855bd20d23f54599dcc9d4adb42f1d0",
"created_at": 1701971784,
"kind": 1,
"tags": [
[
"t",
"adventofcode"
]
],
"content": "Advent of Code 2023 - Day 7\n\nPart 1 : 5h16:30 (rank 23536)\nPart 2 : 5h52:59 (rank 19668)\n\nI started very late, and I needed more than 2 hours to solve the part 1. I even submitted a wrong answer (the first time this year) as I had not seen that the rules for sorting hands were different from regular poker rules.\n\nOn the contrary, part 2 was quite easy. I took additional time to refactor the code, and improve its performances, reducing the runtime from 200 ms to 70 ms.\n\n#AdventOfCode",
"sig": "f93e9f9a3395963b505baa7bf4b0cb11e252e13697af202f776749115d8031102b9d70138ff56961b1dd901612d00829ceb936e3c120403eb2c1fc01280c9f22"
}