Problem 3132 · Medium

Find the Integer Added to Array II

Remove two values from nums1 so the rest, shifted by one integer, matches nums2; report the smallest such integer.

Open the interactive visualisation