(arr)
| 31 | inorder(root.right,res) |
| 32 | |
| 33 | def treesort(arr): |
| 34 | # Build BST |
| 35 | if len(arr) == 0: |
| 36 | return arr |
| 37 | root = node(arr[0]) |
| 38 | for i in range(1,len(arr)): |
| 39 | root.insert(arr[i]) |
| 40 | # Traverse BST in order. |
| 41 | res = [] |
| 42 | inorder(root,res) |
| 43 | return res |
| 44 | |
| 45 | print(treesort([10,1,3,2,9,14,13])) |
no test coverage detected