aiheshan

有多自律,才能有多自由

导航

2016年8月27日 #

leetcode 11. Container With Most Water

摘要: https://leetcode.com/problems/container-with-most-water/ 题目:给定n个非负的数a1...an,其中(i,ai)表示x轴为i,y轴为ai;取任意2个点与x轴的垂直线可以组合成一个容器,假设用这些容器来装水,则其中装水最多的容器可装水多少? 思路 阅读全文

posted @ 2016-08-27 09:49 aiheshan 阅读(164) 评论(0) 推荐(0) 编辑