Stream: advent of code

Topic: 2024 Day 10


view this post on Zulip Luke Boswell (Dec 10 2024 at 06:06):

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

view this post on Zulip Paul Stanley (Dec 10 2024 at 07:26):

(deleted)

view this post on Zulip Oskar Hahn (Dec 10 2024 at 07:28):

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:

view this post on Zulip Nicola Peduzzi (Dec 10 2024 at 10:13):

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]

view this post on Zulip Paul Stanley (Dec 10 2024 at 21:29):

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

view this post on Zulip Robin Camarasa (Dec 11 2024 at 15:29):

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