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: dsa/beginner/002-Recursion.md
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
id: recursion
2
+
id: 0002-recursion
3
3
title: Recursion
4
4
sidebar_label: Recursion
5
5
tags:
@@ -13,8 +13,6 @@ tags:
13
13
description: "This page explains the concept of Recursion with detailed explanations, examples, and code implementations."
14
14
---
15
15
16
-
# Recursion
17
-
18
16
## 1. What is Recursion?
19
17
20
18
Recursion is a programming technique where a function calls itself in order to solve a problem. This technique divides the problem into smaller, more manageable sub-problems. A recursive function has two main parts:
@@ -100,7 +98,7 @@ Compute the factorial of a given number using recursion.
100
98
101
99
## 5. Constraints
102
100
103
-
- $0 <= n <= 12$ (for reasonable output)
101
+
- $0 \leq n \leq 12$ (for reasonable output)
104
102
105
103
## 6. Algorithm for Recursion
106
104
@@ -201,4 +199,4 @@ Compute the factorial of a given number using recursion.
0 commit comments