Skip to content

Commit

Permalink
Update 283.move-zeroes.md
Browse files Browse the repository at this point in the history
错别字修正
  • Loading branch information
TH-coder authored Apr 2, 2020
1 parent b5c7739 commit 9319ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/283.move-zeroes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Minimize the total number of operations.
```
## 思路

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

Expand Down

0 comments on commit 9319ea2

Please sign in to comment.