mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-13 18:00:18 +08:00
Finetune Rust code.
This commit is contained in:
@@ -34,4 +34,4 @@ pub fn main() {
|
||||
|
||||
let res = climbing_stairs_backtrack(n);
|
||||
println!("爬 {n} 阶楼梯共有 {res} 种方案");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,4 +28,4 @@ pub fn main() {
|
||||
|
||||
let res = climbing_stairs_constraint_dp(n);
|
||||
println!("爬 {n} 阶楼梯共有 {res} 种方案");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,4 +24,4 @@ pub fn main() {
|
||||
|
||||
let res = climbing_stairs_dfs(n);
|
||||
println!("爬 {n} 阶楼梯共有 {res} 种方案");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,4 +41,4 @@ pub fn main() {
|
||||
|
||||
let res = climbing_stairs_dp_comp(n);
|
||||
println!("爬 {n} 阶楼梯共有 {res} 种方案");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,4 +45,4 @@ pub fn main() {
|
||||
|
||||
let res = min_cost_climbing_stairs_dp_comp(&cost);
|
||||
println!("爬完楼梯的最低代价为 {res}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user