mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-10 04:06:51 +08:00
Update 二叉树理论基础.md
增加Python 版本 TreeNode定义.
This commit is contained in:
@ -206,7 +206,13 @@ public class TreeNode {
|
|||||||
|
|
||||||
|
|
||||||
Python:
|
Python:
|
||||||
|
```python
|
||||||
|
class TreeNode:
|
||||||
|
def __init__(self, value):
|
||||||
|
self.value = value
|
||||||
|
self.left = None
|
||||||
|
self.right = None
|
||||||
|
```
|
||||||
|
|
||||||
Go:
|
Go:
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user