question archive DATA STRUCTURE QUESTION C++ programming Given this array { 6,17,20,41,45,52,57,65,71,76,87,92,95,99 }, and would like to build an inorder traversal tree from this array
Subject:Computer SciencePrice: Bought3
DATA STRUCTURE QUESTION
C++ programming
Given this array { 6,17,20,41,45,52,57,65,71,76,87,92,95,99 }, and would like to build an inorder traversal tree from this array. Moreover, I would like the user to input a number that will return the k-th smallest element of the binary search tree.
Can I have the implementation for this question? I already have 2 different algorithms, but I struggle with the implementation.