摘要: Problem:Implementint sqrt(int x).Compute and return the square root ofx.Conclusion for Binary Search Problem:Binary search is such an elegant way of s... 阅读全文
posted @ 2015-09-09 10:33 airforce 阅读(324) 评论(0) 推荐(0)
摘要: Problem:Given an array of strings, group anagrams together.For example, given:["eat", "tea", "tan", "ate", "nat", "bat"],Return:[ ["ate", "eat","tea"... 阅读全文
posted @ 2015-09-09 06:42 airforce 阅读(396) 评论(0) 推荐(0)
摘要: Problem:Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were i... 阅读全文
posted @ 2015-09-09 01:50 airforce 阅读(180) 评论(0) 推荐(0)
摘要: Problem:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last ... 阅读全文
posted @ 2015-09-09 00:09 airforce 阅读(181) 评论(0) 推荐(0)