#3132
Find the Integer Added to Array II
expert · 1105 · lc medium +32 · 32.9% accepted · 179 likes · top 10%
Description
Given integer arrays nums1 and nums2, two elements were removed from nums1 and the remaining elements were each shifted by some integer x to produce nums2. Return the smallest possible value of x.
Code
1
2
3