Skip to content

Commit d3543f8

Browse files
authored
Merge pull request azl397985856#336 from TH-coder/master
283.move-zeroes 错别字修正
2 parents cdec1bd + 80f7539 commit d3543f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problems/283.move-zeroes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Minimize the total number of operations.
1818
```
1919
## 思路
2020

21-
如果题目没有要求 modify in-place 的话,我们可以先遍历一遍将包含 0 的和不包含 0 的存到两个数字
21+
如果题目没有要求 modify in-place 的话,我们可以先遍历一遍将包含 0 的和不包含 0 的存到两个数组
2222
然后拼接两个数组即可。 但是题目要求 modify in-place, 也就是不需要借助额外的存储空间,刚才的方法
2323
空间复杂度是 O(n).
2424

0 commit comments

Comments
 (0)