mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 12:58:42 +08:00
Prepare 1.1.0 release (#1274)
* Update bucket_sort.c * Fix the comments in quick_sort.c * Update the announce badge * Sync zh and zh-hant versions * Update contributors list. * Sync zh and zh-hant versions. * Sync zh and zh-hant versions. * Update the contributors list * Update the version number
This commit is contained in:
@ -16,7 +16,9 @@ func backtrack(choices: [Int], state: Int, n: Int, res: inout [Int]) {
|
||||
if state + choice > n {
|
||||
continue
|
||||
}
|
||||
// 嘗試:做出選擇,更新狀態
|
||||
backtrack(choices: choices, state: state + choice, n: n, res: &res)
|
||||
// 回退
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user