leetcode.cn 2026-05-08
🟡3629.minimum-jumps-to-reach-end-via-prime-teleportation
🏷️ Tags
#breadth_first_search #array #hash_table #math #number_theory
🟡3629.minimum-jumps-to-reach-end-via-prime-teleportation
🏷️ Tags
#breadth_first_search #array #hash_table #math #number_theory
Telegraph
minimum-jumps-to-reach-end-via-prime-teleportation
给你一个长度为 n 的整数数组 nums。
leetcode.com 2026-05-08
🟡3629.minimum-jumps-to-reach-end-via-prime-teleportation
🏷️ Tags
#breadth_first_search #array #hash_table #math #number_theory
🟡3629.minimum-jumps-to-reach-end-via-prime-teleportation
🏷️ Tags
#breadth_first_search #array #hash_table #math #number_theory
Telegraph
minimum-jumps-to-reach-end-via-prime-teleportation
You are given an integer array nums of length n. You start at index 0, and your goal is to reach index n - 1. From any index i, you may perform one of the following operations:
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:
leetcode.cn 2026-05-13
🟡1674.minimum-moves-to-make-array-complementary
🏷️ Tags
#array #hash_table #prefix_sum
🟡1674.minimum-moves-to-make-array-complementary
🏷️ Tags
#array #hash_table #prefix_sum
Telegraph
minimum-moves-to-make-array-complementary
给你一个长度为 偶数 n 的整数数组 nums 和一个整数 limit 。每一次操作,你可以将 nums 中的任何整数替换为 1 到 limit 之间的另一个整数。 如果对于所有下标 i(下标从 0 开始),nums[i] + nums[n - 1 - i] 都等于同一个数,则数组 nums 是 互补的 。例如,数组 [1,2,3,4] 是互补的,因为对于所有下标 i ,nums[i] + nums[n - 1 - i] = 5 。 返回使数组 互补 的 最少 操作次数。 示例 1: 输入:nums…
leetcode.com 2026-05-13
🟡1674.minimum-moves-to-make-array-complementary
🏷️ Tags
#array #hash_table #prefix_sum
🟡1674.minimum-moves-to-make-array-complementary
🏷️ Tags
#array #hash_table #prefix_sum
Telegraph
minimum-moves-to-make-array-complementary
You are given an integer array nums of even length n and an integer limit. In one move, you can replace any integer from nums with another integer between 1 and limit, inclusive. The array nums is complementary if for all indices i (0-indexed), nums[i] +…