Given an integer array nums, partition it into two contiguous subarrays, left and right, such that:
Every element in left is less than or equal to every element in right.
left and right are non empty.
left has the smallest possible length.
Return the length of left after performing such a partition.
Constraints:
nums.length
nums[i]
There is at least one valid answer for the given input.
Given an integer array nums, partition it into two contiguous subarrays, left and right, such that:
Every element in left is less than or equal to every element in right.
left and right are non empty.
left has the smallest possible length.
Return the length of left after performing such a partition.
Constraints:
nums.length
nums[i]
There is at least one valid answer for the given input.