GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — leetcode/python/011_Container_With_Most_Water.py at master · harryin777/leetcode Expand file tree/ Copy path011_Container_With_Most_Water.pyMore file actions 14 lines (14 loc) · 457 Bytes / Copy path011_Container_With_Most_Water.pyFile metadata and controls14 lines (14 loc) · 457 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 class Solution: def maxArea(self, height: List[int]) -> int: # Two points left, right = 0, len(height) - 1 result = 0 while left < right: result = max(min(height[left], height[right]) * (right - left), result) if height[left] > height[right]: # remove right right -= 1 else: # remove left left += 1 return result |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |