feat: add the section of the introduction to dynamic programming (#571)

* add the section of the introduction to
dynamic programming

* add a code comments.
This commit is contained in:
Yudong Jin
2023-06-30 04:31:43 +08:00
committed by GitHub
parent 4722e7bca7
commit 3f03663d2e
28 changed files with 1268 additions and 4 deletions

View File

@ -318,7 +318,7 @@
```python title=""
def algorithm(n: int) -> None:
a = 0 # O(1)
a = 0 # O(1)
b = [0] * 10000 # O(1)
if n > 10:
nums = [0] * n # O(n)