Skip to content

Commit ee85a36

Browse files
authored
Merge pull request #1159 from RaymondSalim/patch-2
refactor: [Java][42-Trapping-Rain-Water.java] remove print statement
2 parents 8e19ca4 + 32097a4 commit ee85a36

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)