We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90aa055 commit 4bb8b55Copy full SHA for 4bb8b55
1 file changed
allalgorithms/sorting/tree_sort.py
@@ -36,8 +36,7 @@ def in_order_traversal(tree):
36
in_order_traversal(tree.right)
37
38
39
-if __name__ == '__main__':
40
- x = list(map(int,input().split(" ")))
+def TreeSort(x):
41
# root node
42
t = insert(None, x[0]);
43
# inserting all elements in the binary tree
0 commit comments