LeetCode: Container with Most Water
Problem:
https://leetcode.com/problems/container-with-most-water/description/
Code:
class Solution:
def maxArea(self, height: List[int]) -> int:
left=0
right=len(height)-1
max_area=0
while left<right:
...
is-power-of-two.hashnode.dev1 min read