docs(chapter_tree/binary_tree/二叉树表示方式 *): TS code

与下图及其他编程语言示例代码不一致
pull/180/head
DullSword 2 years ago committed by GitHub
parent 4c9e5cca15
commit 142913bc9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"

Loading…
Cancel
Save