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 平面上的布局如上图所示,其中每个大写英文字母都位于某个坐标处。
leetcode.com 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
You have a keyboard layout as shown above in the X-Y plane, where each English uppercase letter is located at some coordinate.
leetcode.cn 2026-04-14
🔴2463.minimum-total-distance-traveled
🏷️ Tags
#array #dynamic_programming #sorting
🔴2463.minimum-total-distance-traveled
🏷️ Tags
#array #dynamic_programming #sorting
Telegraph
minimum-total-distance-traveled
X 轴上有一些机器人和工厂。给你一个整数数组 robot ,其中 robot[i] 是第 i 个机器人的位置。再给你一个二维整数数组 factory ,其中 factory[j] = [positionj, limitj] ,表示第 j 个工厂的位置在 positionj ,且第 j 个工厂最多可以修理 limitj 个机器人。 每个机器人所在的位置 互不相同 。每个工厂所在的位置也 互不相同 。注意一个机器人可能一开始跟一个工厂在 相同的位置 。 所有机器人一开始都是坏的,他们会沿着设定的方向一直移动。设定的方向要么是…
leetcode.com 2026-04-14
🔴2463.minimum-total-distance-traveled
🏷️ Tags
#array #dynamic_programming #sorting
🔴2463.minimum-total-distance-traveled
🏷️ Tags
#array #dynamic_programming #sorting
Telegraph
minimum-total-distance-traveled
There are some robots and factories on the X-axis. You are given an integer array robot where robot[i] is the position of the ith robot. You are also given a 2D integer array factory where factory[j] = [positionj, limitj] indicates that positionj is the position…
leetcode.cn 2026-04-15
🟢2515.shortest-distance-to-target-string-in-a-circular-array
🏷️ Tags
#array #string
🟢2515.shortest-distance-to-target-string-in-a-circular-array
🏷️ Tags
#array #string
Telegraph
shortest-distance-to-target-string-in-a-circular-array
给你一个下标从 0 开始的 环形 字符串数组 words 和一个字符串 target 。环形数组 意味着数组首尾相连。
leetcode.com 2026-04-15
🟢2515.shortest-distance-to-target-string-in-a-circular-array
🏷️ Tags
#array #string
🟢2515.shortest-distance-to-target-string-in-a-circular-array
🏷️ Tags
#array #string
Telegraph
shortest-distance-to-target-string-in-a-circular-array
You are given a 0-indexed circular string array words and a string target. A circular array means that the array's end connects to the array's beginning.