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
commit 0867a68e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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");