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