leetcode.cn 2025-12-27
🔴2402.meeting-rooms-iii
🏷️ Tags
#array #hash_table #sorting #simulation #heap_priority_queue
🔴2402.meeting-rooms-iii
🏷️ Tags
#array #hash_table #sorting #simulation #heap_priority_queue
Telegraph
meeting-rooms-iii
给你一个整数 n ,共有编号从 0 到 n - 1 的 n 个会议室。 给你一个二维整数数组 meetings ,其中 meetings[i] = [starti, endi] 表示一场会议将会在 半闭 时间区间 [starti, endi) 举办。所有 starti 的值 互不相同 。 会议将会按以下方式分配给会议室:
leetcode.com 2025-12-27
🔴2402.meeting-rooms-iii
🏷️ Tags
#array #hash_table #sorting #simulation #heap_priority_queue
🔴2402.meeting-rooms-iii
🏷️ Tags
#array #hash_table #sorting #simulation #heap_priority_queue
Telegraph
meeting-rooms-iii
You are given an integer n. There are n rooms numbered from 0 to n - 1. You are given a 2D integer array meetings where meetings[i] = [starti, endi] means that a meeting will be held during the half-closed time interval [starti, endi). All the values of starti…
leetcode.cn 2026-01-22
🟢3507.minimum-pair-removal-to-sort-array-i
🏷️ Tags
#array #hash_table #linked_list #doubly_linked_list #ordered_set #simulation #heap_priority_queue
🟢3507.minimum-pair-removal-to-sort-array-i
🏷️ Tags
#array #hash_table #linked_list #doubly_linked_list #ordered_set #simulation #heap_priority_queue
Telegraph
minimum-pair-removal-to-sort-array-i
给你一个数组 nums,你可以执行以下操作任意次数:
leetcode.com 2026-01-22
🟢3507.minimum-pair-removal-to-sort-array-i
🏷️ Tags
#array #hash_table #linked_list #doubly_linked_list #ordered_set #simulation #heap_priority_queue
🟢3507.minimum-pair-removal-to-sort-array-i
🏷️ Tags
#array #hash_table #linked_list #doubly_linked_list #ordered_set #simulation #heap_priority_queue
Telegraph
minimum-pair-removal-to-sort-array-i
Given an array nums, you can perform the following operation any number of times:
leetcode.cn 2026-01-23
🔴3510.minimum-pair-removal-to-sort-array-ii
🏷️ Tags
#array #hash_table #linked_list #doubly_linked_list #ordered_set #simulation #heap_priority_queue
🔴3510.minimum-pair-removal-to-sort-array-ii
🏷️ Tags
#array #hash_table #linked_list #doubly_linked_list #ordered_set #simulation #heap_priority_queue
Telegraph
minimum-pair-removal-to-sort-array-ii
给你一个数组 nums,你可以执行以下操作任意次数:
leetcode.com 2026-01-23
🔴3510.minimum-pair-removal-to-sort-array-ii
🏷️ Tags
#array #hash_table #linked_list #doubly_linked_list #ordered_set #simulation #heap_priority_queue
🔴3510.minimum-pair-removal-to-sort-array-ii
🏷️ Tags
#array #hash_table #linked_list #doubly_linked_list #ordered_set #simulation #heap_priority_queue
Telegraph
minimum-pair-removal-to-sort-array-ii
Given an array nums, you can perform the following operation any number of times:
leetcode.cn 2026-01-27
🟡3650.minimum-cost-path-with-edge-reversals
🏷️ Tags
#graph #shortest_path #heap_priority_queue
🟡3650.minimum-cost-path-with-edge-reversals
🏷️ Tags
#graph #shortest_path #heap_priority_queue
Telegraph
minimum-cost-path-with-edge-reversals
给你一个包含 n 个节点的有向带权图,节点编号从 0 到 n - 1。同时给你一个数组 edges,其中 edges[i] = [ui, vi, wi] 表示一条从节点 ui 到节点 vi 的有向边,其成本为 wi。
leetcode.com 2026-01-27
🟡3650.minimum-cost-path-with-edge-reversals
🏷️ Tags
#graph #shortest_path #heap_priority_queue
🟡3650.minimum-cost-path-with-edge-reversals
🏷️ Tags
#graph #shortest_path #heap_priority_queue
Telegraph
minimum-cost-path-with-edge-reversals
You are given a directed, weighted graph with n nodes labeled from 0 to n - 1, and an array edges where edges[i] = [ui, vi, wi] represents a directed edge from node ui to node vi with cost wi. Each node ui has a switch that can be used at most once: when…
leetcode.cn 2026-02-02
🔴3013.divide-an-array-into-subarrays-with-minimum-cost-ii
🏷️ Tags
#array #hash_table #sliding_window #heap_priority_queue
🔴3013.divide-an-array-into-subarrays-with-minimum-cost-ii
🏷️ Tags
#array #hash_table #sliding_window #heap_priority_queue
Telegraph
divide-an-array-into-subarrays-with-minimum-cost-ii
给你一个下标从 0 开始长度为 n 的整数数组 nums 和两个 正 整数 k 和 dist 。 一个数组的 代价 是数组中的 第一个 元素。比方说,[1,2,3] 的代价为 1 ,[3,4,1] 的代价为 3 。 你需要将 nums 分割成 k 个 连续且互不相交 的子数组,满足 第二 个子数组与第 k 个子数组中第一个元素的下标距离 不超过 dist 。换句话说,如果你将 nums 分割成子数组 nums[0..(i1 - 1)], nums[i1..(i2 - 1)], ..., nums[ik-1..(n…
leetcode.com 2026-02-02
🔴3013.divide-an-array-into-subarrays-with-minimum-cost-ii
🏷️ Tags
#array #hash_table #sliding_window #heap_priority_queue
🔴3013.divide-an-array-into-subarrays-with-minimum-cost-ii
🏷️ Tags
#array #hash_table #sliding_window #heap_priority_queue
Telegraph
divide-an-array-into-subarrays-with-minimum-cost-ii
You are given a 0-indexed array of integers nums of length n, and two positive integers k and dist. The cost of an array is the value of its first element. For example, the cost of [1,2,3] is 1 while the cost of [3,4,1] is 3. You need to divide nums into…
leetcode.cn 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
给你一个整数 mountainHeight 表示山的高度。 同时给你一个整数数组 workerTimes,表示工人们的工作时间(单位:秒)。 工人们需要 同时 进行工作以 降低 山的高度。对于工人 i :
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…