Skip to content

Commit 4bb8b55

Browse files
committed
Added Tree Sort
1 parent 90aa055 commit 4bb8b55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

allalgorithms/sorting/tree_sort.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def in_order_traversal(tree):
3636
in_order_traversal(tree.right)
3737

3838

39-
if __name__ == '__main__':
40-
x = list(map(int,input().split(" ")))
39+
def TreeSort(x):
4140
# root node
4241
t = insert(None, x[0]);
4342
# inserting all elements in the binary tree

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy