Skip to content

Commit 876750b

Browse files
update time complexity of recursion
1 parent cc91b8f commit 876750b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dynamic Programming/12) Ninja And His Friends.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public class Solution {
3030
}
3131
}
3232
```
33-
> `Time Complexity` : **O(3<sup>N</sup>\*3<sup>N</sup>)**
33+
> `Time Complexity` : **O(3<sup>N</sup>\*3<sup>N</sup>)**, N = number of rows
3434
> `Space Complexity` : **O(N)**
3535
---
36-
### Memorization
36+
### Memoization
3737
```java
3838
import java.util.*;
3939
public class Solution {

0 commit comments

Comments
 (0)