X46: matchUp

Given two arrays of the same length, nums1 and nums2, for every element in nums1, consider the corresponding element in nums2 (at the same index). Return a count of the number of times that the two elements differ by 2 or less, but are not equal.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.