Day 14: Semi-naive solution got there in the end (2m11s execution time) just to get the answer.
Rewrote it properly (think lanternfish) and it's near instantaneous (under 0.01s).
How naive? When I saw the sample output was 2 trillion I didn't even bother trying mine (a list of chars). It would've required 10 TB of memory
@Greenbank started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Day 14: Semi-naive solution got there in the end (2m11s execution time) just to get the answer.
Rewrote it properly (think lanternfish) and it's near instantaneous (under 0.01s).