华为上机机试练习 --------------------变态跳台阶 ---------------java语言描述
2021-05-23 16:31
标签:多个 margin describe des 华为 style target public sub 华为上机机试练习 --------------------变态跳台阶 ---------------java语言描述 标签:多个 margin describe des 华为 style target public sub 原文地址:https://www.cnblogs.com/guodao/p/9734613.html题目描述
public class Solution {
public int JumpFloorII(int target) {
int[] a = new int[target + 1];
a[0] = 1;
a[1] = 1;
for (int i = 2; i ){
for (int j = 0; j ){
a[i]+=a[j];
}
}
return a[target];
}
}
文章标题:华为上机机试练习 --------------------变态跳台阶 ---------------java语言描述
文章链接:http://soscw.com/index.php/essay/88301.html