Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Commonly Asked Interview Problems/Trapping Rain Water.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
In this case, 6 units of rain water (blue section) are being trapped.
*/
class Solution {
public int trap(int[] height) {
public int trap(int[] height)throws IOException {
int n = height.length;
int water = 0;
int[] l = new int[n];
Expand Down