We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29b03e9 commit 3dc3622Copy full SHA for 3dc3622
container-with-most-water/jinvicky.java
@@ -11,7 +11,7 @@ public int maxArea(int[] height) {
11
12
while (start < end) {
13
int y = Math.min(height[start], height[end]); // y축은 더 작은 값으로 설정
14
- int x = Math.abs(start - end);
+ int x = Math.abs(start - end); // end - start도 가능
15
int calculatedArea = x * y;
16
area = Math.max(area, calculatedArea);
17
maximum-product-subarray/jinvicky.java
@@ -30,4 +30,4 @@ public int maxProduct(int[] nums) {
30
}
31
return overall;
32
33
-}
+}
0 commit comments