mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-10 22:46:07 +00:00
Many bug fixes and improvements (#1270)
* Add Ruby and Kotlin icons Add the avatar of @curtishd * Update README * Synchronize zh-hant and zh versions. * Translate the pythontutor blocks to traditional Chinese * Fix en/mkdocs.yml * Update the landing page of the en version. * Fix the Dockerfile * Refine the en landingpage * Fix en landing page * Reset the README.md
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user