Count zeros
\tclass Solution:\n\t\tdef minSum(self, nums1: List[int], nums2: List[int]) -> int:\n\t\t\tzerosOfNums1, zerosOfNums2 = nums1.count(0), nums2.count(0)\n\t\t\tsu
\tclass Solution:\n\t\tdef minSum(self, nums1: List[int], nums2: List[int]) -> int:\n\t\t\tzerosOfNums1, zerosOfNums2 = nums1.count(0), nums2.count(0)\n\t\t\tsum1, sum2 = sum(nums1), sum(nums2) \n\t\t\tif zerosOfNums1==0 and zerosOfNums2==0 and sum1 != sum2: return -1 \n\t\t\tif zerosOfNums1==0 and zerosOfNums2!=0 and sum1 < sum2 + zerosOfNums2: return -1 \n\t\t\tif zerosOfNums1!=0 and zerosOfNums2==0 and sum1 + zerosOfNums1 > sum2: return -1 \n\n\t\t\treturn max(sum1+zerosOfNums1,sum2+zerosOfNums2)
['Python']