curr_max
and possible_max
to nums[0]
, and length
to 1.nums[i] < curr_max
, update length
to i + 1
and set curr_max
to possible_max
.nums[i] >= curr_max
, update possible_max
to max(possible_max, nums[i])
if nums[i]
is greater.length
as the size of the left subarray.