Skip to content

Commit

Permalink
docs(chapter_tree/binary_tree/二叉树表示方式 *): TS code
Browse files Browse the repository at this point in the history
与下图及其他编程语言示例代码不一致
  • Loading branch information
DullSword authored Dec 27, 2022
1 parent 4c9e5cc commit 142913b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/chapter_tree/binary_tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ comments: true
```typescript title=""
/* 二叉树的数组表示 */
// 直接使用 null 来表示空位
let tree = [1, 2, 3, 4, 5, 6, 7, null, null, null, null, null, null, null, null]
let tree: (number | null)[] = [1, 2, 3, 4, null, 6, 7, 8, 9, null, null, 12, null, null, 15];
```

=== "C"
Expand Down

0 comments on commit 142913b

Please sign in to comment.