leetcode刷题(数组、链表、跳表)
主题:数组、链表、跳表
1.盛最多水的容器(leetcode.11)
题目链接https://leetcode-cn.com/problems/container-with-most-water/
关键词:数组、双指针
class Solution:
def maxArea(self, height: List[int]) -> int:
l, r = 0, len(height) - 1
res = 0
while l <.
原创
2021-09-15 10:43:10 ·
235 阅读 ·
0 评论