摘要: Max Points on a LineGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.求有多少点在一直线上。粗暴地用二重循环遍历。每一轮都构造一个哈希表... 阅读全文
posted @ 2015-08-15 23:55 `Liok 阅读(417) 评论(0) 推荐(0) 编辑
摘要: Subsets IIGiven a collection of integers that might contain duplicates,nums, return all possible subsets.Note:Elements in a subset must be in non-desc... 阅读全文
posted @ 2015-08-15 20:51 `Liok 阅读(349) 评论(0) 推荐(0) 编辑
摘要: Subsets Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution 阅读全文
posted @ 2015-08-15 20:48 `Liok 阅读(718) 评论(0) 推荐(0) 编辑