Skip to content

Commit 1b11384

Browse files
committed
fix formatting
1 parent d0173b1 commit 1b11384

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

posts/270325.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ why it helps?
2424
top-down vs bottom up
2525

2626
- top down (tabulation)
27-
2827
- **iteration** and starts with a basecase
2928
- order matters
3029
- usually faster, no recursion overhead
31-
3230
```py
3331
# fibonacci
3432
F = [0] * (n+1)
@@ -37,7 +35,6 @@ top-down vs bottom up
3735
for i in range(2, n):
3836
F[i] = F[i-1] + F[i-2]
3937
```
40-
4138
- bottom-up (memoization)
4239

4340
- **recursion** and made efficient with memoization

0 commit comments

Comments
 (0)