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.com 2026-05-25
🟡1871.jump-game-vii
🏷️ Tags
#string #dynamic_programming #prefix_sum #sliding_window
🟡1871.jump-game-vii
🏷️ Tags
#string #dynamic_programming #prefix_sum #sliding_window
Telegraph
jump-game-vii
You are given a 0-indexed binary string s and two integers minJump and maxJump. In the beginning, you are standing at index 0, which is equal to '0'. You can move from index i to index j if the following conditions are fulfilled:
leetcode.cn 2026-06-04
🟡3751.total-waviness-of-numbers-in-range-i
🏷️ Tags
#math #dynamic_programming #enumeration
🟡3751.total-waviness-of-numbers-in-range-i
🏷️ Tags
#math #dynamic_programming #enumeration
Telegraph
total-waviness-of-numbers-in-range-i
给你两个整数 num1 和 num2,表示一个 闭 区间 [num1, num2]。
leetcode.com 2026-06-04
🟡3751.total-waviness-of-numbers-in-range-i
🏷️ Tags
#math #dynamic_programming #enumeration
🟡3751.total-waviness-of-numbers-in-range-i
🏷️ Tags
#math #dynamic_programming #enumeration
Telegraph
total-waviness-of-numbers-in-range-i
You are given two integers num1 and num2 representing an inclusive range [num1, num2]. The waviness of a number is defined as the total count of its peaks and valleys:
leetcode.cn 2026-06-12
🔴3559.number-of-ways-to-assign-edge-weights-ii
🏷️ Tags
#bit_manipulation #tree #depth_first_search #array #math #dynamic_programming
🔴3559.number-of-ways-to-assign-edge-weights-ii
🏷️ Tags
#bit_manipulation #tree #depth_first_search #array #math #dynamic_programming
Telegraph
number-of-ways-to-assign-edge-weights-ii
给你一棵有 n 个节点的无向树,节点从 1 到 n 编号,树以节点 1 为根。树由一个长度为 n - 1 的二维整数数组 edges 表示,其中 edges[i] = [ui, vi] 表示在节点 ui 和 vi 之间有一条边。
leetcode.com 2026-06-12
🔴3559.number-of-ways-to-assign-edge-weights-ii
🏷️ Tags
#bit_manipulation #tree #depth_first_search #array #math #dynamic_programming
🔴3559.number-of-ways-to-assign-edge-weights-ii
🏷️ Tags
#bit_manipulation #tree #depth_first_search #array #math #dynamic_programming
Telegraph
number-of-ways-to-assign-edge-weights-ii
There is an undirected tree with n nodes labeled from 1 to n, rooted at node 1. The tree is represented by a 2D integer array edges of length n - 1, where edges[i] = [ui, vi] indicates that there is an edge between nodes ui and vi. Initially, all edges have…
leetcode.cn 2026-07-03
🔴3620.network-recovery-pathways
🏷️ Tags
#graph #topological_sort #array #binary_search #dynamic_programming #shortest_path #heap_priority_queue
🔴3620.network-recovery-pathways
🏷️ Tags
#graph #topological_sort #array #binary_search #dynamic_programming #shortest_path #heap_priority_queue
Telegraph
network-recovery-pathways
给你一个包含 n 个节点(编号从 0 到 n - 1)的有向无环图。图由长度为 m 的二维数组 edges 表示,其中 edges[i] = [ui, vi, costi] 表示从节点 ui 到节点 vi 的单向通信,恢复成本为 costi。 一些节点可能处于离线状态。给定一个布尔数组 online,其中 online[i] = true 表示节点 i 在线。节点 0 和 n - 1 始终在线。 从 0 到 n - 1 的路径如果满足以下条件,那么它是 有效 的:
leetcode.com 2026-07-03
🔴3620.network-recovery-pathways
🏷️ Tags
#graph #topological_sort #array #binary_search #dynamic_programming #shortest_path #heap_priority_queue
🔴3620.network-recovery-pathways
🏷️ Tags
#graph #topological_sort #array #binary_search #dynamic_programming #shortest_path #heap_priority_queue
Telegraph
network-recovery-pathways
You are given a directed acyclic graph of n nodes numbered from 0 to n − 1. This is represented by a 2D array edges of length m, where edges[i] = [ui, vi, costi] indicates a one‑way communication from node ui to node vi with a recovery cost of costi. Some…
leetcode.cn 2026-07-05
🔴1301.number-of-paths-with-max-score
🏷️ Tags
#array #dynamic_programming #matrix
🔴1301.number-of-paths-with-max-score
🏷️ Tags
#array #dynamic_programming #matrix
Telegraph
number-of-paths-with-max-score
给你一个正方形字符数组 board ,你从数组最右下方的字符 'S' 出发。 你的目标是到达数组最左上角的字符 'E' ,数组剩余的部分为数字字符 1, 2, ..., 9 或者障碍 'X'。在每一步移动中,你可以向上、向左或者左上方移动,可以移动的前提是到达的格子没有障碍。 一条路径的 「得分」 定义为:路径上所有数字的和。 请你返回一个列表,包含两个整数:第一个整数是 「得分」 的最大值,第二个整数是得到最大得分的方案数,请把结果对 10^9 + 7 取余。 如果没有任何路径可以到达终点,请返回 [0…
leetcode.com 2026-07-05
🔴1301.number-of-paths-with-max-score
🏷️ Tags
#array #dynamic_programming #matrix
🔴1301.number-of-paths-with-max-score
🏷️ Tags
#array #dynamic_programming #matrix
Telegraph
number-of-paths-with-max-score
You are given a square board of characters. You can move on the board starting at the bottom right square marked with the character 'S'. You need to reach the top left square marked with the character 'E'. The rest of the squares are labeled either with a…