Given an array of integers nums, determine the maximum length of a contiguous subarray whose elements have a strictly positive product.
Return the maximum length found. If there is no subarray with a positive product, return
Note: A subarray is a contiguous sequence of elements within an array. A product equal to
is not considered positive.
Constraints:
nums.length
nums[i]
Given an array of integers nums, determine the maximum length of a contiguous subarray whose elements have a strictly positive product.
Return the maximum length found. If there is no subarray with a positive product, return
Note: A subarray is a contiguous sequence of elements within an array. A product equal to
is not considered positive.
Constraints:
nums.length
nums[i]