- 博客(1)
- 收藏
- 关注
原创 Reverse Words in a String
题目:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the". 思路:用栈实现,利用两个栈stackWord,stackSentence,一个存单词,一个存句子,遇到“ ”之前将字符存于stack
2017-02-26 16:51:02
286
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人