Skip to content

Commit 79d4efb

Browse files
authored
Update convert_binary_search_tree_to_doubly_linked_list.py
1 parent 78b3e70 commit 79d4efb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

convert_binary_search_tree_to_doubly_linked_list.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
def __init__(self):
@@ -21,4 +21,6 @@ def bstToDoublyList(self, root):
2121
node.prev = self.tail
2222
self.tail = node
2323
self.bstToDoublyList(root.right)
24-
return self.head
24+
return self.head
25+
26+
# medium: http://lintcode.com/zh-cn/problem/convert-binary-search-tree-to-doubly-linked-list/

0 commit comments

Comments
 (0)