leetcode.cn 2026-05-10
🟡2770.maximum-number-of-jumps-to-reach-the-last-index
🏷️ Tags
#array #dynamic_programming
🟡2770.maximum-number-of-jumps-to-reach-the-last-index
🏷️ Tags
#array #dynamic_programming
Telegraph
maximum-number-of-jumps-to-reach-the-last-index
给你一个下标从 0 开始、由 n 个整数组成的数组 nums 和一个整数 target 。 你的初始位置在下标 0 。在一步操作中,你可以从下标 i 跳跃到任意满足下述条件的下标 j :
leetcode.com 2026-05-10
🟡2770.maximum-number-of-jumps-to-reach-the-last-index
🏷️ Tags
#array #dynamic_programming
🟡2770.maximum-number-of-jumps-to-reach-the-last-index
🏷️ Tags
#array #dynamic_programming
Telegraph
maximum-number-of-jumps-to-reach-the-last-index
You are given a 0-indexed array nums of n integers and an integer target. You are initially positioned at index 0. In one step, you can jump from index i to any index j such that: