leetcode.cn 2025-05-07
🟡3341.find-minimum-time-to-reach-last-room-i
🏷️ Tags
#graph #array #matrix #shortest_path #heap_priority_queue
🟡3341.find-minimum-time-to-reach-last-room-i
🏷️ Tags
#graph #array #matrix #shortest_path #heap_priority_queue
Telegraph
find-minimum-time-to-reach-last-room-i
有一个地窖,地窖中有 n x m 个房间,它们呈网格状排布。 给你一个大小为 n x m 的二维数组 moveTime ,其中 moveTime[i][j] 表示在这个时刻 以后 你才可以 开始 往这个房间 移动 。你在时刻 t = 0 时从房间 (0, 0) 出发,每次可以移动到 相邻 的一个房间。在 相邻 房间之间移动需要的时间为 1 秒。
leetcode.com 2025-05-07
🟡3341.find-minimum-time-to-reach-last-room-i
🏷️ Tags
#graph #array #matrix #shortest_path #heap_priority_queue
🟡3341.find-minimum-time-to-reach-last-room-i
🏷️ Tags
#graph #array #matrix #shortest_path #heap_priority_queue
Telegraph
find-minimum-time-to-reach-last-room-i
There is a dungeon with n x m rooms arranged as a grid. You are given a 2D array moveTime of size n x m, where moveTime[i][j] represents the minimum time in seconds when you can start moving to that room. You start from the room (0, 0) at time t = 0 and can…
leetcode.cn 2025-05-08
🟡3342.find-minimum-time-to-reach-last-room-ii
🏷️ Tags
#graph #array #matrix #shortest_path #heap_priority_queue
🟡3342.find-minimum-time-to-reach-last-room-ii
🏷️ Tags
#graph #array #matrix #shortest_path #heap_priority_queue
Telegraph
find-minimum-time-to-reach-last-room-ii
有一个地窖,地窖中有 n x m 个房间,它们呈网格状排布。 给你一个大小为 n x m 的二维数组 moveTime ,其中 moveTime[i][j] 表示在这个时刻 以后 你才可以 开始 往这个房间 移动 。你在时刻 t = 0 时从房间 (0, 0) 出发,每次可以移动到 相邻 的一个房间。在 相邻 房间之间移动需要的时间为:第一次花费 1 秒,第二次花费 2 秒,第三次花费 1 秒,第四次花费 2 秒……如此 往复 。
leetcode.com 2025-05-08
🟡3342.find-minimum-time-to-reach-last-room-ii
🏷️ Tags
#graph #array #matrix #shortest_path #heap_priority_queue
🟡3342.find-minimum-time-to-reach-last-room-ii
🏷️ Tags
#graph #array #matrix #shortest_path #heap_priority_queue
Telegraph
find-minimum-time-to-reach-last-room-ii
There is a dungeon with n x m rooms arranged as a grid. You are given a 2D array moveTime of size n x m, where moveTime[i][j] represents the minimum time in seconds when you can start moving to that room. You start from the room (0, 0) at time t = 0 and can…
leetcode.cn 2025-05-09
🔴3343.count-number-of-balanced-permutations
🏷️ Tags
#math #string #dynamic_programming #combinatorics
🔴3343.count-number-of-balanced-permutations
🏷️ Tags
#math #string #dynamic_programming #combinatorics
Telegraph
count-number-of-balanced-permutations
给你一个字符串 num 。如果一个数字字符串的奇数位下标的数字之和与偶数位下标的数字之和相等,那么我们称这个数字字符串是 平衡的 。
leetcode.com 2025-05-09
🔴3343.count-number-of-balanced-permutations
🏷️ Tags
#math #string #dynamic_programming #combinatorics
🔴3343.count-number-of-balanced-permutations
🏷️ Tags
#math #string #dynamic_programming #combinatorics
Telegraph
count-number-of-balanced-permutations
You are given a string num. A string of digits is called balanced if the sum of the digits at even indices is equal to the sum of the digits at odd indices.
leetcode.cn 2025-05-10
🟡2918.minimum-equal-sum-of-two-arrays-after-replacing-zeros
🏷️ Tags
#greedy #array
🟡2918.minimum-equal-sum-of-two-arrays-after-replacing-zeros
🏷️ Tags
#greedy #array
Telegraph
minimum-equal-sum-of-two-arrays-after-replacing-zeros
给你两个由正整数和 0 组成的数组 nums1 和 nums2 。 你必须将两个数组中的 所有 0 替换为 严格 正整数,并且满足两个数组中所有元素的和 相等 。 返回 最小 相等和 ,如果无法使两数组相等,则返回 -1 。 示例 1: 输入:nums1 = [3,2,0,1,0], nums2 = [6,5,0] 输出:12 解释:可以按下述方式替换数组中的 0 : - 用 2 和 4 替换 nums1 中的两个 0 。得到 nums1 = [3,2,2,1,4] 。 - 用 1 替换 nums2…
leetcode.com 2025-05-10
🟡2918.minimum-equal-sum-of-two-arrays-after-replacing-zeros
🏷️ Tags
#greedy #array
🟡2918.minimum-equal-sum-of-two-arrays-after-replacing-zeros
🏷️ Tags
#greedy #array
Telegraph
minimum-equal-sum-of-two-arrays-after-replacing-zeros
You are given two arrays nums1 and nums2 consisting of positive integers. You have to replace all the 0's in both arrays with strictly positive integers such that the sum of elements of both arrays becomes equal. Return the minimum equal sum you can obtain…
leetcode.cn 2025-05-12
🟢2094.finding-3-digit-even-numbers
🏷️ Tags
#array #hash_table #enumeration #sorting
🟢2094.finding-3-digit-even-numbers
🏷️ Tags
#array #hash_table #enumeration #sorting
Telegraph
finding-3-digit-even-numbers
给你一个整数数组 digits ,其中每个元素是一个数字(0 - 9)。数组中可能存在重复元素。 你需要找出 所有 满足下述条件且 互不相同 的整数:
👍1
leetcode.com 2025-05-12
🟢2094.finding-3-digit-even-numbers
🏷️ Tags
#array #hash_table #enumeration #sorting
🟢2094.finding-3-digit-even-numbers
🏷️ Tags
#array #hash_table #enumeration #sorting
Telegraph
finding-3-digit-even-numbers
You are given an integer array digits, where each element is a digit. The array may contain duplicates. You need to find all the unique integers that follow the given requirements:
leetcode.cn 2025-05-13
🟡3335.total-characters-in-string-after-transformations-i
🏷️ Tags
#hash_table #math #string #dynamic_programming #counting
🟡3335.total-characters-in-string-after-transformations-i
🏷️ Tags
#hash_table #math #string #dynamic_programming #counting
Telegraph
total-characters-in-string-after-transformations-i
给你一个字符串 s 和一个整数 t,表示要执行的 转换 次数。每次 转换 需要根据以下规则替换字符串 s 中的每个字符:
leetcode.com 2025-05-13
🟡3335.total-characters-in-string-after-transformations-i
🏷️ Tags
#hash_table #math #string #dynamic_programming #counting
🟡3335.total-characters-in-string-after-transformations-i
🏷️ Tags
#hash_table #math #string #dynamic_programming #counting
Telegraph
total-characters-in-string-after-transformations-i
You are given a string s and an integer t, representing the number of transformations to perform. In one transformation, every character in s is replaced according to the following rules:
👍1
leetcode.cn 2025-05-14
🔴3337.total-characters-in-string-after-transformations-ii
🏷️ Tags
#hash_table #math #string #dynamic_programming #counting
🔴3337.total-characters-in-string-after-transformations-ii
🏷️ Tags
#hash_table #math #string #dynamic_programming #counting
Telegraph
total-characters-in-string-after-transformations-ii
给你一个由小写英文字母组成的字符串 s,一个整数 t 表示要执行的 转换 次数,以及一个长度为 26 的数组 nums。每次 转换 需要根据以下规则替换字符串 s 中的每个字符: