leetcode NO.11 盛最多水的容器 騰訊精選練習50

題目描述 第一想法就是時間複雜度爲O( n 2 n^2 n2)的暴力破解,雖然我自己寫也寫的很磕絆就是了,辣雞就是我! class Solution: def maxArea(self, height: List[int]) -> int: maxarea = 0 x1 = 0 x2 = 0 for i in height[0
相關文章
相關標籤/搜索