Container-With-Most-Water

所属分类:数学计算
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2024-04-09 20:39:55
上 传 者sh-1993
说明:  给定N个非负整数a1,a2,。。。。a,其中每个表示坐标(i,ai)处的点。绘制N条垂直线,使得线i的两个端点位于(i,ai)和(i,0)。找到两条线,它们与x轴一起形成一个容器,使其包含最多的水。
(Given N non-negative integers a1,a2,....an where each represents a point at coordinate (i, ai). N vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i,0). Find two lines, which together with x-axis forms a container, such that it contains the most water.)

文件列表:
Container With Most Water.py

近期下载者

相关文件


收藏者