摘要:
problem:Given an input string, reverse the string word by word.For example:Given s = "the sky is blue",return "blue is sky the".问题分析:如何准确的找到每一个需要清除的空格... 阅读全文
摘要:
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... 阅读全文