摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. 阅读全文
posted @ 2017-05-03 20:22 牛虻爱吃饭 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Write a function to find the longest common prefix string amongst an array of strings. 这个问题是关于如何寻找字符串数组的公共前缀的,从第一个字母开始,只要共有的都要输出。 思路: 1.首先,如何得到字符串共有前缀 阅读全文
posted @ 2017-05-02 21:46 牛虻爱吃饭 阅读(92) 评论(0) 推荐(0) 编辑