#ContainerWithWater

LeetCode:11. ContainerWithWater(Medium)

原题链接:https://leetcode.com/problems/container-with-most-water/description/题目要求:给定n个非负整数a1,a2,...,an ,每一个整数对应一个坐标(i,ai )。以(i,0)和(i,ai )为端点画一条线段,现在选...