【剑指offer】面试题05:替换空格

05. 替换空格 请实现一个函数,把字符串 s 中的每一个空格替换成"%20"。web 输入:s = "We are happy." 输出:"We%20are%20happy." class Solution { public: string replaceSpace(string s) { int len1 = s.length() - 1; for(in
相关文章
相关标签/搜索