fix(doc/go): fix binary_tree doc (#420)
This commit is contained in:
parent
06f87d8066
commit
fcdc96e03d
@ -510,7 +510,9 @@
|
|||||||
=== "Go"
|
=== "Go"
|
||||||
|
|
||||||
```go title=""
|
```go title=""
|
||||||
|
/* 二叉树的数组表示 */
|
||||||
|
// 使用 any 类型的切片, 就可以使用 nil 来标记空位
|
||||||
|
tree := []any{1, 2, 3, 4, nil, 6, 7, 8, 9, nil, nil, 12, nil, nil, 15}
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "JavaScript"
|
=== "JavaScript"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user