标签:游戏 ref class http com return href 链接 ems
class Solution {
public:
int jump(vector<int>& nums) {
int n = nums.size();
vector<int> f(n);
for (int i = 1, j = 0; i < n; ++i) {
while (j + nums[j] < i) j++;
f[i] = f[j] + 1;
}
return f[n - 1];
}
};
标签:游戏 ref class http com return href 链接 ems
原文地址:https://www.cnblogs.com/clown9804/p/13258871.html