Bug fixes and improvements (#1252)

* Bug fixes

* Fix the landing page of zh-hant version

* Bug fixes and add an Q&A for chapter_data_structure

* Update the mindmap for zh-hant version
This commit is contained in:
Yudong Jin
2024-04-09 19:55:59 +08:00
committed by GitHub
parent 896d9a64f6
commit 78f71eeacb
7 changed files with 41 additions and 9 deletions

View File

@@ -48,7 +48,7 @@ func coinChangeDPComp(coins []int, amt int) int {
}
// 状态转移
for i := 1; i <= n; i++ {
// 序遍历
// 序遍历
for a := 1; a <= amt; a++ {
if coins[i-1] > a {
// 若超过目标金额,则不选硬币 i

View File

@@ -39,7 +39,7 @@ func coinChangeIIDPComp(coins []int, amt int) int {
dp[0] = 1
// 状态转移
for i := 1; i <= n; i++ {
// 序遍历
// 序遍历
for a := 1; a <= amt; a++ {
if coins[i-1] > a {
// 若超过目标金额,则不选硬币 i