So I'm done with part 1 here https://github.com/thenikso/advent-of-code-2024-roc/blob/main/11.roc
But... before part 2... do computers explode if one reserves too much memory? :rolling_on_the_floor_laughing:
yes they do :explosion: do not attempt. better figure out a more clever way :yum:
Overcomplicated it alot at first: built with --optimize
TIMING:
READING INPUT: <1ms
SOLVING PART 1: 1ms
SOLVING PART 2: 14ms
https://gist.github.com/jonwarghed/902ea952577c298c60d659c39b54c057
wow I couldn't figure that out. Copied your solution to understand the logic.
I though long about this. But the solution for part 2 was just a
https://github.com/ostcar/aoc2024/blob/main/day11.roc
So happy to have figured this one out: https://github.com/RobinCamarasa/Advent-of-code/blob/master/2024/day11/RobinCamarasa/main.roc
Last updated: Jul 06 2025 at 12:14 UTC