mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-07 01:44:56 +08:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
2e88f5cc7a | |||
d4c623c182 | |||
0b95129054 | |||
cc54973fa2 | |||
4e3a42e02f |
@ -64,7 +64,6 @@
|
|||||||
* [Segment Tree ✅](#segment-tree)
|
* [Segment Tree ✅](#segment-tree)
|
||||||
* [Binary Indexed Tree ✅](#binary-indexed-tree)
|
* [Binary Indexed Tree ✅](#binary-indexed-tree)
|
||||||
|
|
||||||
|
|
||||||
| 数据结构 | 变种 | 相关题目 |
|
| 数据结构 | 变种 | 相关题目 |
|
||||||
|:-------:|:-------|:------|
|
|:-------:|:-------|:------|
|
||||||
|顺序线性表:向量|||
|
|顺序线性表:向量|||
|
||||||
|
@ -9,10 +9,8 @@ func moveZeroes(nums []int) {
|
|||||||
if nums[i] != 0 {
|
if nums[i] != 0 {
|
||||||
if i != j {
|
if i != j {
|
||||||
nums[i], nums[j] = nums[j], nums[i]
|
nums[i], nums[j] = nums[j], nums[i]
|
||||||
j++
|
|
||||||
} else {
|
|
||||||
j++
|
|
||||||
}
|
}
|
||||||
|
j++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user