Merge pull request #389 from Yilia05/patch-1

Update 剑指 offer 题解.md
This commit is contained in:
郑永川
2018-08-28 21:49:56 +08:00
committed by GitHub

View File

@ -230,7 +230,7 @@ Output:
```java
public String replaceSpace(StringBuffer str) {
int P1 = str.length() - 1;
for (int i = 0; i < str.length(); i++)
for (int i = 0; i < P1+1; i++)
if (str.charAt(i) == ' ')
str.append("aa");