Home /
Expert Answers /
Computer Science /
data-structure-with-c-nbsp-1-you-can-only-use-binary-search-tree-for-this-question-write-a-pa751
(Solved): Data Structure With C++
1. You can only use BINARY SEARCH TREE for this question. Write a ...
Data Structure With C++
1. You can only use BINARY SEARCH TREE for this question. Write a function to find the kth smallest element in a BST. (For clarification see the sample input output below) The first line of the input will contain \( \mathrm{n} \) (number of elements in the BST) and \( \mathrm{k} \). The next line contains \( \mathrm{n} \) integers.