diff --git a/Commonly Asked Interview Problems/Trapping Rain Water.java b/Commonly Asked Interview Problems/Trapping Rain Water.java index d1b498a..f83cf46 100644 --- a/Commonly Asked Interview Problems/Trapping Rain Water.java +++ b/Commonly Asked Interview Problems/Trapping Rain Water.java @@ -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];