0055. 跳跃游戏 #105
0055. 跳跃游戏
#105
Replies: 1 comment
-
贪心算法的解法描述里第三步里应该是Maxi >=i,写错了 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
0055. 跳跃游戏
标签:贪心、数组、动态规划; 难度:中等; 题目大意 描述:给定一个非负整数数组 nums,数组中每个元素代表在该位置可以跳跃的最大长度。开始位置位于数组的第一个下标处。 要求:判断是否能够到达最后一个下标。 说明:$1 \le nums.length \le 3 \times 10^4$ 。; $0 \le nums[i] \le 10^5$ 。; 示...
https://algo.itcharge.cn/Solutions/0001-0099/jump-game/
Beta Was this translation helpful? Give feedback.
All reactions