leetcode.cn 2026-04-02
🟡3418.maximum-amount-of-money-robot-can-earn
🏷️ Tags
#array #dynamic_programming #matrix
🟡3418.maximum-amount-of-money-robot-can-earn
🏷️ Tags
#array #dynamic_programming #matrix
Telegraph
maximum-amount-of-money-robot-can-earn
给你一个 m x n 的网格。一个机器人从网格的左上角 (0, 0) 出发,目标是到达网格的右下角 (m - 1, n - 1)。在任意时刻,机器人只能向右或向下移动。 网格中的每个单元格包含一个值 coins[i][j]:
leetcode.com 2026-04-02
🟡3418.maximum-amount-of-money-robot-can-earn
🏷️ Tags
#array #dynamic_programming #matrix
🟡3418.maximum-amount-of-money-robot-can-earn
🏷️ Tags
#array #dynamic_programming #matrix
Telegraph
maximum-amount-of-money-robot-can-earn
You are given an m x n grid. A robot starts at the top-left corner of the grid (0, 0) and wants to reach the bottom-right corner (m - 1, n - 1). The robot can move either right or down at any point in time. The grid contains a value coins[i][j] in each cell:
leetcode.cn 2026-04-03
🔴3661.maximum-walls-destroyed-by-robots
🏷️ Tags
#array #binary_search #dynamic_programming #sorting
🔴3661.maximum-walls-destroyed-by-robots
🏷️ Tags
#array #binary_search #dynamic_programming #sorting
Telegraph
maximum-walls-destroyed-by-robots
robots[i] 是第 i 个机器人的位置。
leetcode.com 2026-04-03
🔴3661.maximum-walls-destroyed-by-robots
🏷️ Tags
#array #binary_search #dynamic_programming #sorting
🔴3661.maximum-walls-destroyed-by-robots
🏷️ Tags
#array #binary_search #dynamic_programming #sorting
Telegraph
maximum-walls-destroyed-by-robots
robots[i] is the position of the ith robot.
leetcode.cn 2026-04-08
🟡3653.xor-after-range-multiplication-queries-i
🏷️ Tags
#array #divide_and_conquer #simulation
🟡3653.xor-after-range-multiplication-queries-i
🏷️ Tags
#array #divide_and_conquer #simulation
Telegraph
xor-after-range-multiplication-queries-i
给你一个长度为 n 的整数数组 nums 和一个大小为 q 的二维整数数组 queries,其中 queries[i] = [li, ri, ki, vi]。 对于每个查询,按以下步骤执行操作:
leetcode.com 2026-04-08
🟡3653.xor-after-range-multiplication-queries-i
🏷️ Tags
#array #divide_and_conquer #simulation
🟡3653.xor-after-range-multiplication-queries-i
🏷️ Tags
#array #divide_and_conquer #simulation
Telegraph
xor-after-range-multiplication-queries-i
You are given an integer array nums of length n and a 2D integer array queries of size q, where queries[i] = [li, ri, ki, vi]. For each query, you must apply the following operations in order:
leetcode.cn 2026-04-09
🔴3655.xor-after-range-multiplication-queries-ii
🏷️ Tags
#array #divide_and_conquer
🔴3655.xor-after-range-multiplication-queries-ii
🏷️ Tags
#array #divide_and_conquer
Telegraph
xor-after-range-multiplication-queries-ii
给你一个长度为 n 的整数数组 nums 和一个大小为 q 的二维整数数组 queries,其中 queries[i] = [li, ri, ki, vi]。
leetcode.com 2026-04-09
🔴3655.xor-after-range-multiplication-queries-ii
🏷️ Tags
#array #divide_and_conquer
🔴3655.xor-after-range-multiplication-queries-ii
🏷️ Tags
#array #divide_and_conquer
Telegraph
xor-after-range-multiplication-queries-ii
You are given an integer array nums of length n and a 2D integer array queries of size q, where queries[i] = [li, ri, ki, vi].
leetcode.cn 2026-04-10
🟢3740.minimum-distance-between-three-equal-elements-i
🏷️ Tags
#array #hash_table
🟢3740.minimum-distance-between-three-equal-elements-i
🏷️ Tags
#array #hash_table
Telegraph
minimum-distance-between-three-equal-elements-i
给你一个整数数组 nums。 如果满足 nums[i] == nums[j] == nums[k],且 (i, j, k) 是 3 个 不同 下标,那么三元组 (i, j, k) 被称为 有效三元组 。 有效三元组 的 距离 被定义为 abs(i - j) + abs(j - k) + abs(k - i),其中 abs(x) 表示 x 的 绝对值 。 返回一个整数,表示 有效三元组 的 最小 可能距离。如果不存在 有效三元组 ,返回 -1。 示例 1: 输入: nums = [1,2,1,1,3]…
leetcode.com 2026-04-10
🟢3740.minimum-distance-between-three-equal-elements-i
🏷️ Tags
#array #hash_table
🟢3740.minimum-distance-between-three-equal-elements-i
🏷️ Tags
#array #hash_table
Telegraph
minimum-distance-between-three-equal-elements-i
You are given an integer array nums. A tuple (i, j, k) of 3 distinct indices is good if nums[i] == nums[j] == nums[k]. The distance of a good tuple is abs(i - j) + abs(j - k) + abs(k - i), where abs(x) denotes the absolute value of x. Return an integer denoting…
leetcode.cn 2026-04-11
🟡3741.minimum-distance-between-three-equal-elements-ii
🏷️ Tags
#array #hash_table
🟡3741.minimum-distance-between-three-equal-elements-ii
🏷️ Tags
#array #hash_table
Telegraph
minimum-distance-between-three-equal-elements-ii
给你一个整数数组 nums。
leetcode.com 2026-04-11
🟡3741.minimum-distance-between-three-equal-elements-ii
🏷️ Tags
#array #hash_table
🟡3741.minimum-distance-between-three-equal-elements-ii
🏷️ Tags
#array #hash_table
Telegraph
minimum-distance-between-three-equal-elements-ii
You are given an integer array nums. A tuple (i, j, k) of 3 distinct indices is good if nums[i] == nums[j] == nums[k]. The distance of a good tuple is abs(i - j) + abs(j - k) + abs(k - i), where abs(x) denotes the absolute value of x. Return an integer denoting…
leetcode.cn 2026-04-12
🔴1320.minimum-distance-to-type-a-word-using-two-fingers
🏷️ Tags
#string #dynamic_programming
🔴1320.minimum-distance-to-type-a-word-using-two-fingers
🏷️ Tags
#string #dynamic_programming
Telegraph
minimum-distance-to-type-a-word-using-two-fingers
二指输入法定制键盘在 X-Y 平面上的布局如上图所示,其中每个大写英文字母都位于某个坐标处。