Skip to content

Commit

Permalink
refactor: remove print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
RaymondSalim authored Sep 21, 2022
1 parent 8e19ca4 commit 32097a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/42-Trapping-Rain-Water.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public int trap(int[] heights) {
right[i] = Math.max(heights[i], max);
max = right[i];
}
System.out.println(Arrays.toString(right));

for (int i = 0; i < heights.length; i++) {
c = c + Math.min(left[i], right[i]) - heights[i];
}
Expand Down

0 comments on commit 32097a4

Please sign in to comment.