2016年5月29日

Trapping Rain Water

摘要: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. 阅读全文

posted @ 2016-05-29 22:35 Sheryl Wang 阅读(265) 评论(0) 推荐(0) 编辑

Container With Most Water

摘要: 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 endpo 阅读全文

posted @ 2016-05-29 12:19 Sheryl Wang 阅读(226) 评论(0) 推荐(0) 编辑

导航