Update 0654.最大二叉树.md

This commit is contained in:
jianghongcheng
2023-05-22 21:49:22 -05:00
committed by GitHub
parent 12634b2d89
commit 41cf3a4cdd

View File

@ -292,7 +292,6 @@ class Solution:
```
(版本二) 使用下标
```python
class Solution:
def traversal(self, nums: List[int], left: int, right: int) -> TreeNode:
@ -311,9 +310,11 @@ class Solution:
return self.traversal(nums, 0, len(nums))
```python
(版本三) 使用切片
```python
class Solution:
def constructMaximumBinaryTree(self, nums: List[int]) -> TreeNode:
if not nums: