
Patrick B. answered 03/13/19
Math and computer tutor/teacher
Recursion puts a lot of pressure on the call stack.
Nevertheless, there are recursive algorithms like Quicksort that are quite fast
If not coded and implemented correctly, recursive algorithms with poor or
insufficient stopping conditions can easily blow up the call stack.
Yes, in your paindrome example, recursion does seem a bit overkill.
But other algorithms like quickSort, Binary Search, Merge Sort, and
games involving AI, like chess or checkers, recursion is the tool of choice.
It is the problem, rather than the compiler, that drives the design.