You are given two nums1 and nums2, each of length n.
You can create an array nums3 of length n by choosing nums3[i] to be either nums1[i] or nums2[i] for each index i where i
Return the maximum length of a contiguous non-decreasing subarray in nums3.
Constraints:
nums1.length $= nums2.length`
nums1[i], nums2[i]
You are given two nums1 and nums2, each of length n.
You can create an array nums3 of length n by choosing nums3[i] to be either nums1[i] or nums2[i] for each index i where i
Return the maximum length of a contiguous non-decreasing subarray in nums3.
Constraints:
nums1.length $= nums2.length`
nums1[i], nums2[i]