You are given two nums1 and nums2, both of length n.
In a single operation, you can select two indices i and j such that nums1[i] and nums1[j]. The cost incurred by this swap is
You may execute this operation any number of times.
Return the minimum total cost required to make nums1[i] != nums2[i] for all
Constraints:
n == nums1.length == nums2.length
n
nums1[i], nums2[i] n
You are given two nums1 and nums2, both of length n.
In a single operation, you can select two indices i and j such that nums1[i] and nums1[j]. The cost incurred by this swap is
You may execute this operation any number of times.
Return the minimum total cost required to make nums1[i] != nums2[i] for all
Constraints:
n == nums1.length == nums2.length
n
nums1[i], nums2[i] n