I could not make my code work solving part 2. Because when I ran it, it took a long time and finally python gave up with printing killed.
I found this solution: https://hamatti.org/adventofcode/2024/solutions/day-11
And he sayes:
If something is likely to grow exponentially, my Advent of Code experience tells me to go recursive.
Now, my solution is not recursive. So I'm wondering. Why did the execution end with killed?
Did my array become too big? Or why does it fail?