小凹
小凹
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
小凹的博客
全部文章
(共1篇)
【剑指offer】5. 替换空格 - 双指针法 - c++
从前向后记录空格数目,从后向前替换空格 class Solution { public: void replaceSpace(char *str,int length) { // edge case if(str == nullptr || length ==...
2020-01-31
1
530