Skip to content

Commit ee9ae97

Browse files
committed
modify code
1 parent 8b1f799 commit ee9ae97

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/topinterviewquestions/Problem_0152_MaximumProductSubarray.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ public static int maxProduct(int[] nums) {
66
int ans = nums[0];
77
int min = nums[0];
88
int max = nums[0];
9-
// [0]
109
for (int i = 1; i < nums.length; i++) {
1110
int curmin = Math.min(nums[i], Math.min(min * nums[i], max * nums[i]));
1211
int curmax = Math.max(nums[i], Math.max(min * nums[i], max * nums[i]));

0 commit comments

Comments
 (0)