Advent of Code 2024 - Day 11

um cymplecy didn't make it, so

https://adventofcode.com

This is a thread to discuss Day 11 :slight_smile:

https://adventofcode.com/2024/day/11

REMEMBER!
It is VERY important NOT to write any public spoilers :slight_smile:
ALWAYS keep spoiler stuff hidden inside one of these

Summary

This text will be hidden

which you can obtain by clicking on the gear icon

image

Good luck :slight_smile:
FYI one of the features of Advent of Code is that we all get given different inputs so our answers will be different.
The examples are all the same but each of us gets different inputs for us to solve

here are both parts since you dont need any additional code for the second one:

Summary

I'm sure your solution will work for part 1 (25 iterations) but definitely not for part 2 (75 iterations), since the number of stones multiplicates by a factor of about 1.5 with every iteration (about 16 quadrillion after 75 iterations).

A working solution (much more complicated though!)