Skip to content

Commit aefdb07

Browse files
add TreeNode
1 parent a58ebaa commit aefdb07

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎Python/common_utils.py

+7
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ class Interval:
3232
def __init__(self, s=0, e=0):
3333
self.start = s
3434
self.end = e
35+
36+
37+
class TreeNode:
38+
def __init__(self, x):
39+
self.val = x
40+
self.left = None
41+
self.right = None

0 commit comments

Comments
 (0)