leetcode.com 2026-04-25
🔴3464.maximize-the-distance-between-points-on-a-square
🏷️ Tags
#geometry #array #math #binary_search #sorting
🔴3464.maximize-the-distance-between-points-on-a-square
🏷️ Tags
#geometry #array #math #binary_search #sorting
Telegraph
maximize-the-distance-between-points-on-a-square
You are given an integer side, representing the edge length of a square with corners at (0, 0), (0, side), (side, 0), and (side, side) on a Cartesian plane. You are also given a positive integer k and a 2D integer array points, where points[i] = [xi, yi]…
leetcode.cn 2026-05-19
🟢2540.minimum-common-value
🏷️ Tags
#array #hash_table #two_pointers #binary_search
🟢2540.minimum-common-value
🏷️ Tags
#array #hash_table #two_pointers #binary_search
Telegraph
minimum-common-value
给你两个整数数组 nums1 和 nums2 ,它们已经按非降序排序,请你返回两个数组的 最小公共整数 。如果两个数组 nums1 和 nums2 没有公共整数,请你返回 -1 。 如果一个整数在两个数组中都 至少出现一次 ,那么这个整数是数组 nums1 和 nums2 公共 的。 示例 1: 输入:nums1 = [1,2,3], nums2 = [2,4] 输出:2 解释:两个数组的最小公共元素是 2 ,所以我们返回 2 。 示例 2: 输入:nums1 = [1,2,3,6], nums2 =…
leetcode.com 2026-05-19
🟢2540.minimum-common-value
🏷️ Tags
#array #hash_table #two_pointers #binary_search
🟢2540.minimum-common-value
🏷️ Tags
#array #hash_table #two_pointers #binary_search
Telegraph
minimum-common-value
Given two integer arrays nums1 and nums2, sorted in non-decreasing order, return the minimum integer common to both arrays. If there is no common integer amongst nums1 and nums2, return -1. Note that an integer is said to be common to nums1 and nums2 if both…
leetcode.cn 2026-05-30
🔴3161.block-placement-queries
🏷️ Tags
#binary_indexed_tree #segment_tree #array #binary_search
🔴3161.block-placement-queries
🏷️ Tags
#binary_indexed_tree #segment_tree #array #binary_search
Telegraph
block-placement-queries
有一条无限长的数轴,原点在 0 处,沿着 x 轴 正 方向无限延伸。 给你一个二维数组 queries ,它包含两种操作: