leetcode.com 2026-01-17
🟡3047.find-the-largest-area-of-square-inside-two-rectangles
🏷️ Tags
#geometry #array #math
🟡3047.find-the-largest-area-of-square-inside-two-rectangles
🏷️ Tags
#geometry #array #math
Telegraph
find-the-largest-area-of-square-inside-two-rectangles
There exist n rectangles in a 2D plane with edges parallel to the x and y axis. You are given two 2D integer arrays bottomLeft and topRight where bottomLeft[i] = [a_i, b_i] and topRight[i] = [c_i, d_i] represent the bottom-left and top-right coordinates of…
leetcode.cn 2026-01-19
🟡1292.maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
🏷️ Tags
#array #binary_search #matrix #prefix_sum
🟡1292.maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
🏷️ Tags
#array #binary_search #matrix #prefix_sum
Telegraph
maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
给你一个大小为 m x n 的矩阵 mat 和一个整数阈值 threshold。 请你返回元素总和小于或等于阈值的正方形区域的最大边长;如果没有这样的正方形区域,则返回 0 。 示例 1: 输入:mat = [[1,1,3,2,4,3,2],[1,1,3,2,4,3,2],[1,1,3,2,4,3,2]], threshold = 4 输出:2 解释:总和小于或等于 4 的正方形的最大边长为 2,如图所示。 示例 2: 输入:mat = [[2,2,2,2,2],[2,2,2,2,2],[2,2,2,2…
leetcode.com 2026-01-19
🟡1292.maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
🏷️ Tags
#array #binary_search #matrix #prefix_sum
🟡1292.maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
🏷️ Tags
#array #binary_search #matrix #prefix_sum
Telegraph
maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
Given a m x n matrix mat and an integer threshold, return the maximum side-length of a square with a sum less than or equal to threshold or return 0 if there is no such square. Example 1: Input: mat = [[1,1,3,2,4,3,2],[1,1,3,2,4,3,2],[1,1,3,2,4,3,2]], threshold…
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-24
🟡1877.minimize-maximum-pair-sum-in-array
🏷️ Tags
#greedy #array #two_pointers #sorting
🟡1877.minimize-maximum-pair-sum-in-array
🏷️ Tags
#greedy #array #two_pointers #sorting
Telegraph
minimize-maximum-pair-sum-in-array
一个数对 (a,b) 的 数对和 等于 a + b 。最大数对和 是一个数对数组中最大的 数对和 。