Here's my solution :smiley:
https://github.com/lukewilliamboswell/aoc/blob/main/2024/10.roc
TIMING:
READING INPUT: <1ms
SOLVING PART 1: 13ms
SOLVING PART 2: 14ms
(deleted)
Here is mine: https://github.com/ostcar/aoc2024/blob/main/day10.roc
part1 in 12.935ms
part2 in 7.508ms
Today was funny. When solving part1, there was a bug, that produced the wrong output. When I was solving part2, I realized, that the expected value for the example data was exactly the number, I was getting with my part1 with the bug. And it worked. Part2 was my solution for part1 with the bug.
So today, I solved part2 before part 1 :grinning_face_with_smiling_eyes:
haha exactly the same for me! the bug was a feature :grinning_face_with_smiling_eyes:
https://github.com/thenikso/advent-of-code-2024-roc/blob/main/10.roc
Day 10 part 1: (Ok ...) [3ms]
Day 10 part 2: (Ok ...) [4ms]
Same story here. Quickest part 2 for a long time ... but only because of accidental pre-solving.
Part One: ... [2 ms].
Part Two: ... [2 ms].
https://gist.github.com/PaulStanley/073b5445540270d0a728ec65069c8974
Funnily I had the same issue as @Oskar Hahn and @Nicola Peduzzi solving part 1 instead of part 2. But after the pain of Day 09 I was happy that Day 10 was perfectly suited to functional programming https://github.com/RobinCamarasa/Advent-of-code/blob/master/2024/day10/RobinCamarasa/main.roc
Last updated: Jul 06 2025 at 12:14 UTC