摘要: problem:Given an input string, reverse the string word by word.For example:Given s = "the sky is blue",return "blue is sky the".问题分析:如何准确的找到每一个需要清除的空格... 阅读全文
posted @ 2014-12-23 19:40 BestWangJie 阅读(164) 评论(0) 推荐(0) 编辑
摘要: problem:Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.problem analysis... 阅读全文
posted @ 2014-12-23 19:13 BestWangJie 阅读(164) 评论(0) 推荐(0) 编辑