Back to the 2019 paper

Module 4: Graph and Tree Algorithms

201914m

Consider the array A={26,17,41,14,21,30,47,10,16,19,21,28,38,7,12,14,20,35,39,3}A = \{26, 17, 41, 14, 21, 30, 47, 10, 16, 19, 21, 28, 38, 7, 12, 14, 20, 35, 39, 3\}. Create binary search tree with one more attribute its size of node. Retrieve 17th smallest element in the tree and rank the 12th element.

Similar questions