11. Container With Most Water

    C++: 1 class Solution { 2 public: 3 int maxArea(vector<int>& height) { 4 int left = 0 ; 5 int right = height.size() - 1 ; 6 int res = 0 ; 7 while(left <
相關文章
相關標籤/搜索