mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<p>Return <em>the maximum length of a subarray with positive product</em>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> nums = [1,-2,-3,4]
|
||||
@@ -13,7 +13,7 @@
|
||||
<strong>Explanation:</strong> The array nums already has a positive product of 24.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> nums = [0,1,-2,-3,-4]
|
||||
@@ -21,7 +21,7 @@
|
||||
<strong>Explanation:</strong> The longest subarray with positive product is [1,-2,-3] which has a product of 6.
|
||||
Notice that we cannot include 0 in the subarray since that'll make the product 0 which is not positive.</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> nums = [-1,-2,-3,0,1]
|
||||
|
Reference in New Issue
Block a user