Leetcode 2540. Minimum Common Value
Intuition
Since both arrays are sorted, we can find the minimum common value by iterating from left to right with two pointers.
Approach
Initialize both pointers to 0 to start at the beginning of the array. While both pointers are within bounds of th...
blog.kennycarneal.com2 min read