Skip to content
剑指 Offer 算法题解
Appearance
Menu
Return to top
On this page
替换空格
请实现一个函数,把字符串中的每个空格替换成“%20”。例如,输入“We are happy.”,则输出 “We%20are%20happy.”。
思路分析