mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-11-04 06:07:20 +08:00 
			
		
		
		
	Merge pull request #180 from DullSword/patch-2
docs(chapter_tree/binary_tree/二叉树表示方式 *): TS code
This commit is contained in:
		@ -461,7 +461,7 @@ comments: true
 | 
				
			|||||||
    ```typescript title=""
 | 
					    ```typescript title=""
 | 
				
			||||||
    /* 二叉树的数组表示 */
 | 
					    /* 二叉树的数组表示 */
 | 
				
			||||||
    // 直接使用 null 来表示空位
 | 
					    // 直接使用 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"
 | 
					=== "C"
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user