Skip to content

Commit 0f3cc9d

Browse files
committed
chore: Factorial Recursion
1 parent c06c969 commit 0f3cc9d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,22 @@ Learn Big O. Make sure you give what would be the `runtime complexity` and `memo
124124

125125
## Recursion
126126

127+
**Factorial Simple Recursion**
128+
129+
![Factorial Simple Recursion](https://i.imgur.com/5hArLdr.png)
130+
131+
**Recursive Factorial Simulation**
132+
133+
![Recursive Factorial Simulation](https://i.imgur.com/prXbTHd.png)
134+
135+
**Recursive Factorial Time complexity O(n)**
136+
137+
![Recursive Factorial Time complexity](https://i.imgur.com/rPoxJoA.png)
138+
139+
**Recursive Factorial Space complexity is O(n)**
140+
141+
![Recursive Factorial Space complexity](https://i.imgur.com/uceKl4R.png)
142+
127143
## Data Structures
128144

129145
- [x] Array

0 commit comments

Comments
 (0)