5 ms·
Don't try the functional while block at home: Python doesn't handle tail calls efficiently, so you'll take up O(number of iterations) memory, and you'll exceed
by euccastro 19y ago
Don't try the functional while block at home: Python doesn't handle tail calls efficiently, so you'll take up O(number of iterations) memory, and you'll exceed the allowed maximum recursion in long loops.