Leetcode 2540. Minimum Common Value

Опубликовано: 09 Июнь 2026
на канале: Lit Code
63
1

Leetcode 2540. Minimum Common Value - Python Solution

Problem Statement: [https://leetcode.com/problems/minimum...]
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 arrays have at least one occurrence of that integer.