/*

    • @lc app=leetcode.cn id=11 lang=javascript
    • [11] 盛最多水的容器
      */

    // @lc code=start
    /**

    • @param {number[]} height

    • @return {number}
      */
      var maxArea = function(height) {
      let len = height.length-1;
      let l = 0;
      let r = len;
      let max = 0
      while(l let w = r - l;
      let minl = height[r] > height[l]?height[l++]:height[r—];
      max = max > w_minl ? max :w_minl;
      }
      return max
      };
      // @lc code=end