Skip to content

Commit

Permalink
245th Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Oct 28, 2024
1 parent f87f4a9 commit 7bb772e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 19 deletions.
30 changes: 19 additions & 11 deletions algorithms/14.dynamic-programming/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,40 @@ ___| 1

爬到第 1 階,共有 1 種方式:

- 0 -> 1
```ts
0 -> 1
```

`[1]`

爬到第 2 階,共有 2 種方式:

- 0 -> 1 -> 2
- 0    -> 2
```ts
0 -> 1 -> 2
0 -> 2
```

`[1, 2]`

爬到第 3 階,共有 3 種方式:

- 0 -> 1 -> 2 -> 3
- 0    -> 2 -> 3
- 0 -> 1    -> 3
```ts
0 -> 1 -> 2 -> 3
0 -> 2 -> 3
0 -> 1 -> 3
```

`[1, 2, 3]`

爬到第 4 階,共有 5 種方式:

- 0 -> 1 -> 2 -> 3 -> 4
- 0    -> 2 -> 3 -> 4
- 0 -> 1    -> 3 -> 4
- 0 -> 1 -> 2    -> 4
- 0    -> 2    -> 4
```ts
0 -> 1 -> 2 -> 3 -> 4
0 -> 2 -> 3 -> 4
0 -> 1 -> 3 -> 4
0 -> 1 -> 2 -> 4
0 -> 2 -> 4
```

`[1, 2, 3, 5]`

Expand Down
18 changes: 10 additions & 8 deletions algorithms/16.bit-manipulation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

二進位制

- 0001 -> 1
- 0010 -> 2
- 0011 -> 3
- 0100 -> 4
- 0101 -> 5
- 0110 -> 6
- 0111 -> 7
- 1000 -> 8
```ts
0001 -> 1
0010 -> 2
0011 -> 3
0100 -> 4
0101 -> 5
0110 -> 6
0111 -> 7
1000 -> 8
```

左移:

Expand Down

0 comments on commit 7bb772e

Please sign in to comment.