You are given two nums1 and nums2 of length n.
A range nums1[i] or nums2[i] such that the sum of the elements chosen from nums1 is equal to the sum of the elements chosen from nums2.
Return the total number of balanced ranges. Two ranges are considered different if their boundary indices
Constraints:
n nums1.length nums2.length
n
nums1[i], nums2[i]
You are given two nums1 and nums2 of length n.
A range nums1[i] or nums2[i] such that the sum of the elements chosen from nums1 is equal to the sum of the elements chosen from nums2.
Return the total number of balanced ranges. Two ranges are considered different if their boundary indices
Constraints:
n nums1.length nums2.length
n
nums1[i], nums2[i]