MCPcopy Index your code
hub / github.com/BeeBombshell/Python-DSA / treesort

Function treesort

Sorting Algorithms/tree_sort.py:30–40  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

28 inorder(root.right,res)
29
30def treesort(arr):
31 # Build BST
32 if len(arr) == 0:
33 return arr
34 root = node(arr[0])
35 for i in range(1,len(arr)):
36 root.insert(arr[i])
37 # Traverse BST in order.
38 res = []
39 inorder(root,res)
40 return res

Callers

nothing calls this directly

Calls 3

nodeClass · 0.85
inorderFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected