mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-23 01:10:06 +08:00
add binary_tree and avl_tree python code
This commit is contained in:
@ -9,7 +9,7 @@ import collections
|
||||
class TreeNode:
|
||||
"""Definition for a binary tree node
|
||||
"""
|
||||
def __init__(self, val=0, left=None, right=None):
|
||||
def __init__(self, val=None, left=None, right=None):
|
||||
self.val = val
|
||||
self.left = left
|
||||
self.right = right
|
||||
|
Reference in New Issue
Block a user