From 7bb772e12e3860c0a9a3cf2c72b3491debd1cfbd Mon Sep 17 00:00:00 2001 From: Shyam-Chen Date: Mon, 28 Oct 2024 09:56:06 +0800 Subject: [PATCH] 245th Commit --- algorithms/14.dynamic-programming/README.md | 30 +++++++++++++-------- algorithms/16.bit-manipulation/README.md | 18 +++++++------ 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/algorithms/14.dynamic-programming/README.md b/algorithms/14.dynamic-programming/README.md index 1cb5314..5db760e 100644 --- a/algorithms/14.dynamic-programming/README.md +++ b/algorithms/14.dynamic-programming/README.md @@ -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]` diff --git a/algorithms/16.bit-manipulation/README.md b/algorithms/16.bit-manipulation/README.md index 8ab4789..553e387 100644 --- a/algorithms/16.bit-manipulation/README.md +++ b/algorithms/16.bit-manipulation/README.md @@ -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 +``` 左移: