mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-03 02:30:25 +08:00
Fix a definition.
This commit is contained in:
@@ -23,7 +23,7 @@ public class climbing_stairs_dp {
|
||||
return dp[n];
|
||||
}
|
||||
|
||||
/* 爬楼梯:状态压缩后的动态规划 */
|
||||
/* 爬楼梯:空间优化后的动态规划 */
|
||||
public static int climbingStairsDPComp(int n) {
|
||||
if (n == 1 || n == 2)
|
||||
return n;
|
||||
|
||||
Reference in New Issue
Block a user