Skip to content

Commit 32097a4

Browse files
authored
refactor: remove print statement
1 parent 8e19ca4 commit 32097a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/42-Trapping-Rain-Water.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public int trap(int[] heights) {
1414
right[i] = Math.max(heights[i], max);
1515
max = right[i];
1616
}
17-
System.out.println(Arrays.toString(right));
17+
1818
for (int i = 0; i < heights.length; i++) {
1919
c = c + Math.min(left[i], right[i]) - heights[i];
2020
}

0 commit comments

Comments
 (0)