Container With Most Water Solutions in GoNumber 11Difficulty MediumAcceptance 50.9%Link LeetCodeOther languages C++SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func maxArea(height []int) int { max, start, end := 0, 0, len(height)-1 for start < end { width := end - start high := 0 if height[start] < height[end] { high = height[start] start++ } else { high = height[end] end-- } temp := width * high if temp > max { max = temp } } return max}package leetcode func maxArea(height []int) int { max, start, end := 0, 0, len(height)-1 for start < end { width := end - start high := 0 if height[start] < height[end] { high = height[start] start++ } else { high = height[end] end-- } temp := width * high if temp > max { max = temp } } return max }