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

Function inorder

Sorting Algorithms/tree_sort.py:23–28  ·  view source on GitHub ↗
(root, res)

Source from the content-addressed store, hash-verified

21 self.val = val
22
23def inorder(root, res):
24 # Recursive travesal
25 if root:
26 inorder(root.left,res)
27 res.append(root.val)
28 inorder(root.right,res)
29
30def treesort(arr):
31 # Build BST

Callers 1

treesortFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected