You are given two arrays of integers, nums1 and nums2, where each element has a value between
In a single operation, you can select any element in either array and change its value to any integer between
Return the minimum number of operations needed to make the sum of elements in nums1 equal to the sum of elements in nums2. If it is impossible to make their sums equal, return
Constraints:
nums1.length, nums2.length
nums1[i], nums2[i]
You are given two arrays of integers, nums1 and nums2, where each element has a value between
In a single operation, you can select any element in either array and change its value to any integer between
Return the minimum number of operations needed to make the sum of elements in nums1 equal to the sum of elements in nums2. If it is impossible to make their sums equal, return
Constraints:
nums1.length, nums2.length
nums1[i], nums2[i]