Given two integer arrays nums1 and nums2, each of length n, and an integer diff, determine the number of index pairs
nums1[i] - nums1[j] nums2[i] - nums2[j] + diff
Return the total count of such valid pairs.
Constraints:
n == nums1.length == nums2.length
n
nums1[i], nums2[i]
diff
Given two integer arrays nums1 and nums2, each of length n, and an integer diff, determine the number of index pairs
nums1[i] - nums1[j] nums2[i] - nums2[j] + diff
Return the total count of such valid pairs.
Constraints:
n == nums1.length == nums2.length
n
nums1[i], nums2[i]
diff