leetcode.cn 2026-03-08
🟡1980.find-unique-binary-string
🏷️ Tags
#array #hash_table #string #backtracking
🟡1980.find-unique-binary-string
🏷️ Tags
#array #hash_table #string #backtracking
Telegraph
find-unique-binary-string
给你一个字符串数组 nums ,该数组由 n 个 互不相同 的二进制字符串组成,且每个字符串长度都是 n 。请你找出并返回一个长度为 n 且 没有出现 在 nums 中的二进制字符串。如果存在多种答案,只需返回 任意一个 即可。 示例 1: 输入:nums = ["01","10"] 输出:"11" 解释:"11" 没有出现在 nums 中。"00" 也是正确答案。 示例 2: 输入:nums = ["00","01"] 输出:"11" 解释:"11" 没有出现在 nums 中。"10" 也是正确答案。…
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。