You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/1-1000/509-fibonacci-number.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,8 +52,8 @@ Recursion is an important concept in computer science and mathematics, which ref
52
52
### The core idea of recursion
53
53
54
54
-**Self-call**: A function calls itself during execution.
55
-
-**Termination condition**: Recursion must have a termination condition to prevent infinite loops.
56
-
-**Recursive equation**: Through equations, the problem gradually approaches the "termination condition".
55
+
-**Base case**: Equivalent to the termination condition. After reaching the base case, the result can be returned without recursive calls to prevent infinite loops.
56
+
-**Recursive step**: The step by which the problem gradually approaches the "base case".
0 commit comments