Skip to content

Commit 3dc3622

Browse files
author
jinvicky
committed
fix lint
1 parent 29b03e9 commit 3dc3622

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

container-with-most-water/jinvicky.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public int maxArea(int[] height) {
1111

1212
while (start < end) {
1313
int y = Math.min(height[start], height[end]); // y축은 더 작은 값으로 설정
14-
int x = Math.abs(start - end);
14+
int x = Math.abs(start - end); // end - start도 가능
1515
int calculatedArea = x * y;
1616
area = Math.max(area, calculatedArea);
1717

maximum-product-subarray/jinvicky.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ public int maxProduct(int[] nums) {
3030
}
3131
return overall;
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)