4 ms·
The size shouldn't matter once you have a good algorithm for solving it :)
by Oompa 18y ago
The size shouldn't matter once you have a good algorithm for solving it :)
- mark-t 18y agoWell, I could do his in my head. Actually, no, I have that one memorized. I had a perfectly good algorithm. It was a memoized recursion. The problem was that my program printed something like blah*10^27 and they were asking for an exact answer.