mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-24 12:06:07 +00:00
Fix a definition.
This commit is contained in:
@@ -22,7 +22,7 @@ fn climbingStairsDP(comptime n: usize) i32 {
|
||||
return dp[n];
|
||||
}
|
||||
|
||||
// 爬楼梯:状态压缩后的动态规划
|
||||
// 爬楼梯:空间优化后的动态规划
|
||||
fn climbingStairsDPComp(comptime n: usize) i32 {
|
||||
if (n == 1 or n == 2) {
|
||||
return @intCast(n);
|
||||
|
||||
Reference in New Issue
Block a user