摘要: Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runti... 阅读全文
posted @ 2015-08-18 21:58 Sean_le 阅读(122) 评论(0) 推荐(0)
摘要: Valid Numberalidate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the p... 阅读全文
posted @ 2015-08-18 20:05 Sean_le 阅读(150) 评论(0) 推荐(0)
摘要: String to Integer (atoi)Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, plea... 阅读全文
posted @ 2015-08-18 18:55 Sean_le 阅读(147) 评论(0) 推荐(0)
摘要: 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-18 16:44 Sean_le 阅读(136) 评论(0) 推荐(0)