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-06-02
🟢3633.earliest-finish-time-for-land-and-water-rides-i
🏷️ Tags
#greedy #array #two_pointers #binary_search #sorting
🟢3633.earliest-finish-time-for-land-and-water-rides-i
🏷️ Tags
#greedy #array #two_pointers #binary_search #sorting
Telegraph
earliest-finish-time-for-land-and-water-rides-i
给你两种类别的游乐园项目:陆地游乐设施 和 水上游乐设施。
leetcode.com 2026-06-02
🟢3633.earliest-finish-time-for-land-and-water-rides-i
🏷️ Tags
#greedy #array #two_pointers #binary_search #sorting
🟢3633.earliest-finish-time-for-land-and-water-rides-i
🏷️ Tags
#greedy #array #two_pointers #binary_search #sorting
Telegraph
earliest-finish-time-for-land-and-water-rides-i
You are given two categories of theme park attractions: land rides and water rides.
leetcode.cn 2026-06-03
🟡3635.earliest-finish-time-for-land-and-water-rides-ii
🏷️ Tags
#greedy #array #two_pointers #binary_search #sorting
🟡3635.earliest-finish-time-for-land-and-water-rides-ii
🏷️ Tags
#greedy #array #two_pointers #binary_search #sorting
Telegraph
earliest-finish-time-for-land-and-water-rides-ii
给你两种类别的游乐园项目:陆地游乐设施 和 水上游乐设施。
leetcode.com 2026-06-03
🟡3635.earliest-finish-time-for-land-and-water-rides-ii
🏷️ Tags
#greedy #array #two_pointers #binary_search #sorting
🟡3635.earliest-finish-time-for-land-and-water-rides-ii
🏷️ Tags
#greedy #array #two_pointers #binary_search #sorting
Telegraph
earliest-finish-time-for-land-and-water-rides-ii
You are given two categories of theme park attractions: land rides and water rides.
leetcode.cn 2026-06-08
🟡2161.partition-array-according-to-given-pivot
🏷️ Tags
#array #two_pointers #simulation
🟡2161.partition-array-according-to-given-pivot
🏷️ Tags
#array #two_pointers #simulation
Telegraph
partition-array-according-to-given-pivot
给你一个下标从 0 开始的整数数组 nums 和一个整数 pivot 。请你将 nums 重新排列,使得以下条件均成立:
leetcode.com 2026-06-08
🟡2161.partition-array-according-to-given-pivot
🏷️ Tags
#array #two_pointers #simulation
🟡2161.partition-array-according-to-given-pivot
🏷️ Tags
#array #two_pointers #simulation
Telegraph
partition-array-according-to-given-pivot
You are given a 0-indexed integer array nums and an integer pivot. Rearrange nums such that the following conditions are satisfied:
leetcode.cn 2026-06-14
🟡2130.maximum-twin-sum-of-a-linked-list
🏷️ Tags
#stack #linked_list #two_pointers
🟡2130.maximum-twin-sum-of-a-linked-list
🏷️ Tags
#stack #linked_list #two_pointers
Telegraph
maximum-twin-sum-of-a-linked-list
在一个大小为 n 且 n 为 偶数 的链表中,对于 0 <= i <= (n / 2) - 1 的 i ,第 i 个节点(下标从 0 开始)的孪生节点为第 (n-1-i) 个节点 。
leetcode.com 2026-06-14
🟡2130.maximum-twin-sum-of-a-linked-list
🏷️ Tags
#stack #linked_list #two_pointers
🟡2130.maximum-twin-sum-of-a-linked-list
🏷️ Tags
#stack #linked_list #two_pointers
Telegraph
maximum-twin-sum-of-a-linked-list
In a linked list of size n, where n is even, the ith node (0-indexed) of the linked list is known as the twin of the (n-1-i)th node, if 0 <= i <= (n / 2) - 1.
leetcode.cn 2026-06-15
🟡2095.delete-the-middle-node-of-a-linked-list
🏷️ Tags
#linked_list #two_pointers
🟡2095.delete-the-middle-node-of-a-linked-list
🏷️ Tags
#linked_list #two_pointers
Telegraph
delete-the-middle-node-of-a-linked-list
给你一个链表的头节点 head 。删除 链表的 中间节点 ,并返回修改后的链表的头节点 head 。 长度为 n 链表的中间节点是从头数起第 ⌊n / 2⌋ 个节点(下标从 0 开始),其中 ⌊x⌋ 表示小于或等于 x 的最大整数。
leetcode.com 2026-06-15
🟡2095.delete-the-middle-node-of-a-linked-list
🏷️ Tags
#linked_list #two_pointers
🟡2095.delete-the-middle-node-of-a-linked-list
🏷️ Tags
#linked_list #two_pointers
Telegraph
delete-the-middle-node-of-a-linked-list
You are given the head of a linked list. Delete the middle node, and return the head of the modified linked list. The middle node of a linked list of size n is the ⌊n / 2⌋th node from the start using 0-based indexing, where ⌊x⌋ denotes the largest integer…