mirror of
https://github.com/krahets/hello-algo.git
synced 2026-09-01 04:47:12 +00:00
Finetune Rust code.
This commit is contained in:
@@ -56,4 +56,4 @@ fn main() {
|
||||
// 贪心算法
|
||||
let res = fractional_knapsack(&wgt, &val, cap);
|
||||
println!("不超过背包容量的最大物品价值为 {}", res);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user