mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
@ -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