You are given two integer arrays nums1 of length n and nums2 of length n
In one operation, you can perform either of the following actions:
Choose any element in nums1 and increase or decrease its value by
Choose any element in nums1 and append a copy of it to the end of nums1.
Return the minimum number of operations required to make nums1 identical to nums2.
Constraints:
n nums1.length
nums2.length n
nums1[i], nums2[i]
You are given two integer arrays nums1 of length n and nums2 of length n
In one operation, you can perform either of the following actions:
Choose any element in nums1 and increase or decrease its value by
Choose any element in nums1 and append a copy of it to the end of nums1.
Return the minimum number of operations required to make nums1 identical to nums2.
Constraints:
n nums1.length
nums2.length n
nums1[i], nums2[i]