摘要: Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to tr... 阅读全文
posted @ 2015-09-05 22:33 `Liok 阅读(560) 评论(0) 推荐(0) 编辑
摘要: Container With Most WaterGivennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such t... 阅读全文
posted @ 2015-09-05 17:49 `Liok 阅读(316) 评论(0) 推荐(0) 编辑
摘要: H-Index IIFollow upforH-Index: What if thecitationsarray is sorted in ascending order? Could you optimize your algorithm?Hint:Expected runtime complex... 阅读全文
posted @ 2015-09-05 01:28 `Liok 阅读(408) 评论(0) 推荐(0) 编辑
摘要: H-IndexGiven an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.Acc... 阅读全文
posted @ 2015-09-05 01:23 `Liok 阅读(577) 评论(0) 推荐(0) 编辑