#3131
Find the Integer Added to Array I
newbie · 150 · lc easy +14 · 82.9% accepted · 172 likes · top 94%
Description
Given two equal-length integer arrays nums1 and nums2, every element of nums1 was shifted by the same integer x to produce nums2 (arrays are equal when they contain the same values with the same frequencies). Return x.
Code
1
2
3