Search posts, tags, users, and pages
Amit singh
class Solution { public int maxArea(int[] height) { int left = 0; int right = height.length - 1; int maxWater = 0; while (left < right) { int h = Math.min(height[left], height[right]); int ...
No responses yet.