摘要:
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".注意考虑有多个空格的情况就好了,选择的处理办法是在进行空格查找之前先整理字符串 1 #include 2 #include 3 using namespace std; 4 class Solution { 5 public: 6 void reverseWords(string &s) { 7 checkSt 阅读全文
posted @ 2014-03-08 15:50
青轰的后花园
阅读(177)
评论(0)
推荐(0)

浙公网安备 33010602011771号