摘要: 1.剑指 Offer 05. 替换空格 1)再加一个数组 1 class Solution { 2 public: 3 string replaceSpace(string s) { 4 string res; 5 for(auto x : s){ 6 if(x == ' ') 7 res += " 阅读全文
posted @ 2022-06-27 17:41 balabalahhh 阅读(21) 评论(0) 推荐(0)