You are given two binary arrays nums1 and nums2.
You need to replace every element in both arrays with a positive integer such that:
Each element in nums1 is replaced by a positive integer
Each element in nums2 is replaced by a positive integer
Both nums1 and nums2 are strictly increasing.
All elements in both arrays are distinct.
Return the minimum possible value of the largest element among both constructed arrays.
Constraints:
nums1.length
nums2.length
nums1 and nums2 consist only of
You are given two binary arrays nums1 and nums2.
You need to replace every element in both arrays with a positive integer such that:
Each element in nums1 is replaced by a positive integer
Each element in nums2 is replaced by a positive integer
Both nums1 and nums2 are strictly increasing.
All elements in both arrays are distinct.
Return the minimum possible value of the largest element among both constructed arrays.
Constraints:
nums1.length
nums2.length
nums1 and nums2 consist only of