3 ms·
"I can't complete this recursive algorithm because I ran out of stack at this particular step" is a much nicer error message than "segmentation fault". For that
by adrianN 5y ago
"I can't complete this recursive algorithm because I ran out of stack at this particular step" is a much nicer error message than "segmentation fault". For that it would be useful if you could check remaining stack space before recursing.
- vasama 5y agoWhatever values these functions returned, there would be no way for you to make a determination on whether another step can be performed.