Skip to content

Commit 9fcb803

Browse files
fix 109 python solution
1 parent 1d606ba commit 9fcb803

File tree

1 file changed

+13
-0
lines changed
  • src/0109-Convert-Sorted-List-to-Binary-Search-Tree

1 file changed

+13
-0
lines changed

src/0109-Convert-Sorted-List-to-Binary-Search-Tree/0109.py

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Definition for singly-linked list.
2+
class ListNode:
3+
def __init__(self, x):
4+
self.val = x
5+
self.next = None
6+
7+
# Definition for a binary tree node.
8+
class TreeNode:
9+
def __init__(self, x):
10+
self.val = x
11+
self.left = None
12+
self.right = None
13+
114
class Solution:
215
def sortedListToBST(self, head):
316
"""

0 commit comments

Comments
 (0)