We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a31f14 + ca425c0 commit 9ac46c7Copy full SHA for 9ac46c7
book/notes/n_085_01.md
@@ -1,6 +1,6 @@
1
Ah recursion. Recursion is a beloved concept in Computer Science. It is often taught early in most programming
2
-courses because it is "so cool". Most examples like computing factorial or the example above of converting a
3
-an integer to a string are not good uses of recursion.
+courses because it is "so cool". Most examples like computing factorial or the example above of converting an
+integer to a string are not good uses of recursion.
4
5
But when you need to traverse a tree-based structure like an XML document, or parse a mathematical expression,
6
recursion is the ideal solution. So the problem is not recursion, but when it is taught and what examples are used.
0 commit comments