Probably the second one is unsolvable, because there is no way to achieve the necessary performance in the most important calculation. Would be interesting to see your suggestions.
It’s not unsolvable.
It requires more work, as VL is one of the many languages that don’t have language support for memoizing function calls. This feature comes from functional languages and isn’t a common language feature in other programming environments.
In .Net (and C# as well),you have to memoize your function calls yourself, which can easily be done with a mutable dictionary.
Not saying it’s trivial, but it’s also no rocket science to make it run in VL.
I would say the particular quest is a bit tailored for certain languages. Plutonian Pebbles.vl (34.4 KB) Plutonian Pebbles Count.vl (110.0 KB)
btw: I love you two for doing all these patches! Super good stuff! Thank you!
right: You need to work with BigIntegers for the Pebble number and at least Integer64 for the count. I hope this is the correct result finally? Plutonian Pebbles Count BigIntegers.vl (116.1 KB)
Due to some family changes (good ones) I had to take a break. Returning to this I’ve realised that the livestreaming isn’t going to work. From now on I might only get very fractured time during the day to work on this. I won’t be able to find a quiet room for a couple of hours to get it done in one go.
So I’ve stopped the livestreaming, but I still aim to complete AOC24! I will have to go a bit slower and do it in chunks. I’ll make recording and stich together videos of what I do.