水桶装水问题_水桶装水问题java-CSDN博客

网站介绍:文章浏览阅读3.3k次。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). Fin_水桶装水问题java