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