5 ms·
To understand recursion first understand recursion on a recursive data structure (list, tree). It is very natural and there are loads of interesting algorithms.
by theaeolist 6y ago
To understand recursion first understand recursion on a recursive data structure (list, tree). It is very natural and there are loads of interesting algorithms. General recursion is more difficult to understand algorithmically so leave it for later.