摘要: 标题:Sort Colors通过率:32.5%难度:中等Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the... 阅读全文
posted @ 2015-03-06 11:20 pku_smile 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 标题:Container With Most Water通过率:31.9%难度:中等Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines... 阅读全文
posted @ 2015-03-06 11:11 pku_smile 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 标题:Minimum Path Sum通过率:31.7%难度:中等Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of a... 阅读全文
posted @ 2015-03-06 11:02 pku_smile 阅读(146) 评论(0) 推荐(0) 编辑