Skip to content

Commit 9a90a70

Browse files
committed
modified tree_sort
1 parent 8f875f5 commit 9a90a70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

allalgorithms/sorting/tree_sort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
class BinaryTreeNode(object):
32
#initial values for value,left and right
43
def __init__(self, value):
@@ -36,7 +35,7 @@ def in_order_traversal(tree,a):
3635
in_order_traversal(tree.right,a)
3736

3837

39-
def TreeSort(x):
38+
def tree_sort(x):
4039
# root node
4140
t = insert(None, x[0]);
4241
# inserting all elements in the binary tree
@@ -46,3 +45,4 @@ def TreeSort(x):
4645
a = []
4746
in_order_traversal(t,a)
4847
return a
48+

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