其他思路:可以考虑从前向后O(N^2)或者从后向前(O(N))来遍历。
同思路1
面试题5:替换空格
原文:https://www.cnblogs.com/ivyharding/p/11212427.html