zl程序教程

[leetcode]jump game

  • leetcode_Jump Game II

    leetcode_Jump Game II

    描写叙述: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goa

    日期 2023-06-12 10:48:40     
  • [LeetCode] 45. Jump game II ☆☆☆☆☆(跳跃游戏 2)

    [LeetCode] 45. Jump game II ☆☆☆☆☆(跳跃游戏 2)

    https://leetcode-cn.com/problems/jump-game-ii/solution/xiang-xi-tong-su-de-si-lu-fen-xi-duo-jie-fa-by-10/ 描述 给定一个非负整数数组,你最初位于数组的第一个位置。 数组中的每个元素代表你在该位置可以跳跃的最大长度。 你的目标是使用最少的跳跃次数到达数组的最后一个位置。 示例: 输入: [2,

    日期 2023-06-12 10:48:40     
  • LeetCode——Jump Game

    LeetCode——Jump Game

    Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine

    日期 2023-06-12 10:48:40     
  • leetcode - Jump Game II

    leetcode - Jump Game II

    Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal i

    日期 2023-06-12 10:48:40     
  • LeetCode Jump Game

    LeetCode Jump Game

    Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine

    日期 2023-06-12 10:48:40     
  • 【leetcode】Jump Game I, II 跳跃游戏一和二

    【leetcode】Jump Game I, II 跳跃游戏一和二

    题目: Jump Game I: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that pos

    日期 2023-06-12 10:48:40     
  • leetcode第一刷_Jump Game

    leetcode第一刷_Jump Game

    这个题事实上非常easy的,我一開始想复杂了,它没要求记录路径,事实上仅仅要看一下每一步之后所能延伸到的最远的位置就能够了,在这一个最远位置前面的那些位置,都是能够到达的,假设扫到了某个i,它大于当前能延伸到到的最远位置,说明这个i不可达。终于的位置能不能到达,就看终于延伸到的位置能不能大于等于它。 class Solution { public: bool canJump(int

    日期 2023-06-12 10:48:40     
  • Leetcode: Jump Game II

    Leetcode: Jump Game II

    Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal is

    日期 2023-06-12 10:48:40     
  • Leetcode: Jump Game

    Leetcode: Jump Game

    Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine if

    日期 2023-06-12 10:48:40     
  • leetCode 45.Jump Game II (跳跃游戏) 解题思路和方法

    leetCode 45.Jump Game II (跳跃游戏) 解题思路和方法

    Jump Game II Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position.

    日期 2023-06-12 10:48:40     
  • LeetCode Jump Game II

    LeetCode Jump Game II

    LeetCode解题之Jump Game II 原题 数组中的每一个值表示在当前位置最多能向前面跳几步,推断至少跳几步可以跳到最后。 注意点: 全部的数字都是正数 跳的步数可以比当前的值小 保证全部的測试用例都可以跳到最后 样例: 输入: nums = [2, 3, 1, 1, 4] 输出: 2 解题思路 这是在 Jump Game 之上给出的

    日期 2023-06-12 10:48:40     
  • [LeetCode] Jump Game

    [LeetCode] Jump Game

      Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine

    日期 2023-06-12 10:48:40     
  • [LeetCode] Jump Game II

    [LeetCode] Jump Game II

    Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal is to

    日期 2023-06-12 10:48:40     
  • 【LeetCode】45. Jump Game II

    【LeetCode】45. Jump Game II

    Jump Game II Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. You

    日期 2023-06-12 10:48:40     
  • 【LeetCode】55. Jump Game

    【LeetCode】55. Jump Game

    Jump Game   Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position.

    日期 2023-06-12 10:48:40     
  • [LeetCode] 1340. Jump Game V 跳跃游戏之五

    [LeetCode] 1340. Jump Game V 跳跃游戏之五

    Given an array of integers arr and an integer d. In one step you can jump from index i to index: i + x where: i + x < arr.length and  0 <&nbs

    日期 2023-06-12 10:48:40     
  • [LeetCode] 1306. Jump Game III 跳跃游戏之三

    [LeetCode] 1306. Jump Game III 跳跃游戏之三

    Given an array of non-negative integers arr, you are initially positioned at start index of the array. When you are at index i, you can jump to i + arr[i] or 

    日期 2023-06-12 10:48:40     
  • [LeetCode] 45. Jump Game II 跳跃游戏之二

    [LeetCode] 45. Jump Game II 跳跃游戏之二

      Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal

    日期 2023-06-12 10:48:40     
  • [LeetCode] 55. Jump Game 跳跃游戏

    [LeetCode] 55. Jump Game 跳跃游戏

      You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length at that position. Ret

    日期 2023-06-12 10:48:40