首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
题盛专题
Python | Leetcode Python题解之第11题盛最多水的容器
题目: 题解: class Solution:def maxArea(self, height: List[int]) -> int:l, r = 0, len(height) - 1ans = 0while l < r:area = min(height[l], height[r]) * (r - l)ans = max(ans, area)if height[l] <= height[
阅读更多...