auto commit

This commit is contained in:
CyC2018
2018-08-28 21:52:21 +08:00
parent 0867a68e27
commit 46f19d913c
7 changed files with 38 additions and 42 deletions

View File

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