4 ms·
Arguably day 11 part 2 is such a "lanternfish" problem, although it essentially tells you to watch out for it.
by n4r9 4y ago
Arguably day 11 part 2 is such a "lanternfish" problem, although it essentially tells you to watch out for it.
- WJW 4y agoI definitely ran into that. I read "impractically large number" and thought "well the language I'm using has arbitrary size integers so I should be fine". So, I changed the code from 20 iterations to 10000 iterations and suddenly all 16 GB of my RAM was filled with Santa's worry counters.
- dmurray 4y agoWorse, I ported my solution to use BigInt and then found that was neither necessary nor sufficient.