Leetcode 中等六 盛最多水的容器

盛最多水的容器: php: 52ms。雙指針法。短板效應,所以移動小的值。 class Solution { /** * @param Integer[] $height * @return Integer */ function maxArea($height) { $maxArea = -1; $end = cou
相關文章
相關標籤/搜索