leetcode.cn 2026-03-26
🔴3548.equal-sum-grid-partition-ii
🏷️ Tags
#array #hash_table #enumeration #matrix #prefix_sum
🔴3548.equal-sum-grid-partition-ii
🏷️ Tags
#array #hash_table #enumeration #matrix #prefix_sum
Telegraph
equal-sum-grid-partition-ii
给你一个由正整数组成的 m x n 矩阵 grid。你的任务是判断是否可以通过 一条水平或一条垂直分割线 将矩阵分割成两部分,使得:
leetcode.com 2026-03-26
🔴3548.equal-sum-grid-partition-ii
🏷️ Tags
#array #hash_table #enumeration #matrix #prefix_sum
🔴3548.equal-sum-grid-partition-ii
🏷️ Tags
#array #hash_table #enumeration #matrix #prefix_sum
Telegraph
equal-sum-grid-partition-ii
You are given an m x n matrix grid of positive integers. Your task is to determine if it is possible to make either one horizontal or one vertical cut on the grid such that:
leetcode.cn 2026-03-30
🟡2840.check-if-strings-can-be-made-equal-with-operations-ii
🏷️ Tags
#hash_table #string #sorting
🟡2840.check-if-strings-can-be-made-equal-with-operations-ii
🏷️ Tags
#hash_table #string #sorting
Telegraph
check-if-strings-can-be-made-equal-with-operations-ii
给你两个字符串 s1 和 s2 ,两个字符串长度都为 n ,且只包含 小写 英文字母。 你可以对两个字符串中的 任意一个 执行以下操作 任意 次:
leetcode.com 2026-03-30
🟡2840.check-if-strings-can-be-made-equal-with-operations-ii
🏷️ Tags
#hash_table #string #sorting
🟡2840.check-if-strings-can-be-made-equal-with-operations-ii
🏷️ Tags
#hash_table #string #sorting
Telegraph
check-if-strings-can-be-made-equal-with-operations-ii
You are given two strings s1 and s2, both of length n, consisting of lowercase English letters. You can apply the following operation on any of the two strings any number of times:
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-17
🟡3761.minimum-absolute-distance-between-mirror-pairs
🏷️ Tags
#array #hash_table #math
🟡3761.minimum-absolute-distance-between-mirror-pairs
🏷️ Tags
#array #hash_table #math
Telegraph
minimum-absolute-distance-between-mirror-pairs
给你一个整数数组 nums。
leetcode.com 2026-04-17
🟡3761.minimum-absolute-distance-between-mirror-pairs
🏷️ Tags
#array #hash_table #math
🟡3761.minimum-absolute-distance-between-mirror-pairs
🏷️ Tags
#array #hash_table #math
Telegraph
minimum-absolute-distance-between-mirror-pairs
You are given an integer array nums. A mirror pair is a pair of indices (i, j) such that:
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-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] +…