摘要: 方法: 首先建立一个一维数组nums, nums[i] 表是在当前位置上还能向右跑几步; 然后更新最右距离: // nums 最优距离数组 // t 要跳的位置 public int jump(int[] nums, int t) { int n = nums.length; if(n==1){ r 阅读全文
posted @ 2023-02-27 18:15 r1-12king 阅读(19) 评论(0) 推荐(0) 编辑