You are given two nums1 and nums2, each having an even length n.
You must remove nums1 and nums2. After the removals, all remaining elements from both arrays are placed into a set s.
Return the maximum possible number of elements in the set s.
Constraints:
n == nums1.length == nums2.length
n
n is even.
nums1[i], nums2[i]
You are given two nums1 and nums2, each having an even length n.
You must remove nums1 and nums2. After the removals, all remaining elements from both arrays are placed into a set s.
Return the maximum possible number of elements in the set s.
Constraints:
n == nums1.length == nums2.length
n
n is even.
nums1[i], nums2[i]