4 ms·
Can't you also just pass a bit through the recursion that contains its depth, and halt the recursion if that number gets too high?
by dclowd9901 11y ago
Can't you also just pass a bit through the recursion that contains its depth, and halt the recursion if that number gets too high?
- ktRolster 11y agoYes, but that depends on making sure you get the programming logic correct, whereas with banning recursion outright, it can be tested automatically.