LeetCode Container With Most Water
Problem statement
Given N non-negative integers a1, a2, …, an, where each represents a point at coordinate(i, ai). N vertical lines are drawn such that the two endpoints of the line i is at (i, ai) and (i, 0). Find two lines, which, together with the...
alkesh26.hashnode.dev5 min read