mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 14:16:29 +08:00
docs(chapter_tree/binary_tree/二叉树表示方式 *): JS code
与下图及其他编程语言示例代码不一致
This commit is contained in:
parent
4c9e5cca15
commit
9a46bf1d80
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ comments: true
|
|||
```js title=""
|
||||
/* 二叉树的数组表示 */
|
||||
// 直接使用 null 来表示空位
|
||||
let tree = [1, 2, 3, 4, 5, 6, 7, null, null, null, null, null, null, null, null]
|
||||
let tree = [1, 2, 3, 4, null, 6, 7, 8, 9, null, null, 12, null, null, 15];
|
||||
```
|
||||
|
||||
=== "TypeScript"
|
||||
|
|
Loading…
Reference in a new issue