https://github.com/ostcar/aoc2023/blob/main/days/day10.roc
This was messy. I misunderstood part2, run into some compiler bugs and stack overflows. I am not sure if my solution is over complicated, but it works.
Part 1 was quick, part 2 needed some thinking. Not sure if I overcomplicated things.
I'm also pretty sure it will not work for every input. I do not handle the start 'S' correctly on part 2. But since it took me to much time to solve it, I have no desire to fix this.
@Oskar Hahn I think I need some time to understand your solution for p2, but it definetly looks interesting.
I tried to clean up my solution a bit. I hope it is understandable now.
I also wrote an explanation for the solution of part 2. SPOILER!
Nice explanation, thank you.
Solution discussion
My day 10: https://github.com/timotree3/aoc2023/blob/main/roc/day10.roc
Solution discussion
Solved day 10 https://github.com/lindskogen/advent-of-code-2023/blob/main/day10/main.roc
Day 18
Last updated: Jul 06 2025 at 12:14 UTC