leetcode.com 2026-03-13
🟡3296.minimum-number-of-seconds-to-make-mountain-height-zero
🏷️ Tags
#greedy #array #math #binary_search #heap_priority_queue
🟡3296.minimum-number-of-seconds-to-make-mountain-height-zero
🏷️ Tags
#greedy #array #math #binary_search #heap_priority_queue
Telegraph
minimum-number-of-seconds-to-make-mountain-height-zero
You are given an integer mountainHeight denoting the height of a mountain. You are also given an integer array workerTimes representing the work time of workers in seconds. The workers work simultaneously to reduce the height of the mountain. For worker i:
leetcode.cn 2026-03-16
🟡1878.get-biggest-three-rhombus-sums-in-a-grid
🏷️ Tags
#array #math #matrix #prefix_sum #sorting #heap_priority_queue
🟡1878.get-biggest-three-rhombus-sums-in-a-grid
🏷️ Tags
#array #math #matrix #prefix_sum #sorting #heap_priority_queue
Telegraph
get-biggest-three-rhombus-sums-in-a-grid
给你一个 m x n 的整数矩阵 grid 。 菱形和 指的是 grid 中一个正菱形 边界 上的元素之和。本题中的菱形必须为正方形旋转45度,且四个角都在一个格子当中。下图是四个可行的菱形,每个菱形和应该包含的格子都用了相应颜色标注在图中。 注意,菱形可以是一个面积为 0 的区域,如上图中右下角的紫色菱形所示。 请你按照 降序 返回 grid 中三个最大的 互不相同的菱形和 。如果不同的和少于三个,则将它们全部返回。 示例 1: 输入:grid = [[3,4,5,1,3],[3,3,4,2,3]…
leetcode.com 2026-03-16
🟡1878.get-biggest-three-rhombus-sums-in-a-grid
🏷️ Tags
#array #math #matrix #prefix_sum #sorting #heap_priority_queue
🟡1878.get-biggest-three-rhombus-sums-in-a-grid
🏷️ Tags
#array #math #matrix #prefix_sum #sorting #heap_priority_queue
Telegraph
get-biggest-three-rhombus-sums-in-a-grid
You are given an m x n integer matrix grid. A rhombus sum is the sum of the elements that form the border of a regular rhombus shape in grid. The rhombus must have the shape of a square rotated 45 degrees with each of the corners centered in a grid…
leetcode.cn 2026-03-27
🟢2946.matrix-similarity-after-cyclic-shifts
🏷️ Tags
#array #math #matrix #simulation
🟢2946.matrix-similarity-after-cyclic-shifts
🏷️ Tags
#array #math #matrix #simulation
Telegraph
matrix-similarity-after-cyclic-shifts
给你一个下标从 0 开始且大小为 m x n 的整数矩阵 mat 和一个整数 k 。请你将矩阵中的 奇数 行循环 右 移 k 次,偶数 行循环 左 移 k 次。 如果初始矩阵和最终矩阵完全相同,则返回 true ,否则返回 false 。 示例 1: 输入:mat = [[1,2,1,2],[5,5,5,5],[6,3,6,3]], k = 2 输出:true 解释: 初始矩阵如图一所示。 图二表示对奇数行右移一次且对偶数行左移一次后的矩阵状态。 图三是经过两次循环移位后的最终矩阵状态,与初始矩阵相同。…
leetcode.com 2026-03-27
🟢2946.matrix-similarity-after-cyclic-shifts
🏷️ Tags
#array #math #matrix #simulation
🟢2946.matrix-similarity-after-cyclic-shifts
🏷️ Tags
#array #math #matrix #simulation
Telegraph
matrix-similarity-after-cyclic-shifts
You are given an m x n integer matrix mat and an integer k. The matrix rows are 0-indexed. The following proccess happens k times:
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: