文章目录 求替换空格 1.题目描述 2.题目链接 3.解题思路 求替换空格 1.题目描述 2.题目链接 牛客题目链接 力扣题目链接 3.解题思路 解题方法:在原来的string上增加有效长度: class