Sorting an array using a Binary Search Tree in C++
问题 I'm trying to write a program that sorts integer elements of an array, using a Binary Search Tree(BST) as support data structure. The idea is that once the array is given, then it is possible to use a BST to sort his element; for example: if my array is: {120, 30, 115, 40, 50, 100, 70} then I build a BST like this: Once I have this BST, I can do an inorder tree traversal to touch every node in order, from the lowest to the highest element and modify the array. The result would be a sorted