2014年10月26日

摘要: Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".SOLUTION:指针指到两个字符串的末尾,不断往前推进,用carr... 阅读全文
posted @ 2014-10-26 21:56 Yu's Garden 阅读(571) 评论(0) 推荐(1) 编辑
摘要: Merge IntervalsGiven a collection of intervals, merge all overlapping intervals.For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10],[15,1... 阅读全文
posted @ 2014-10-26 20:45 Yu's Garden 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 今天中午刚收到f家的intern offer, 超级开心。在这个版块看了很多也收获很多。onsite前天晚上面就就对自己过了一定发个帖跟需要的人分享下自己的经历。论坛上帖子看了很多,很多拿了FLAG之类公司的人都说自己不是大牛啦,没准备多久啦。 LZ 觉得都太假了。 所以希望LZ的帖子能真正的对之后... 阅读全文
posted @ 2014-10-26 16:48 Yu's Garden 阅读(3494) 评论(0) 推荐(1) 编辑
摘要: Longest Consecutive SequenceGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, ... 阅读全文
posted @ 2014-10-26 11:16 Yu's Garden 阅读(1213) 评论(0) 推荐(0) 编辑

导航