You are given two integer arrays of equal length, nums1 and nums2.
In a single operation, you may swap the values nums1[i] and nums2[i] at any chosen index i.
Return the minimum number of operations needed to make both nums1 and nums2 strictly increasing.
Note: The test cases are generated such that it is always possible to make both sequences strictly increasing.
Constraints:
nums1.length
nums2.length nums1.length
nums1[i], nums2[i]
You are given two integer arrays of equal length, nums1 and nums2.
In a single operation, you may swap the values nums1[i] and nums2[i] at any chosen index i.
Return the minimum number of operations needed to make both nums1 and nums2 strictly increasing.
Note: The test cases are generated such that it is always possible to make both sequences strictly increasing.
Constraints:
nums1.length
nums2.length nums1.length
nums1[i], nums2[i]