logo

Crowdly

Browser

Add to Chrome

The following numbers are inserted (in this order) in a BST:  8 (0xA), 3 (0xB)...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

The following numbers are inserted (in this order) in a BST: 

8 (0xA), 3 (0xB), 2 (0xC), 5 (0xD), 17 (0xE), 13 (0xF), 29(0xA1), 31 (0xB1), 23 (0xC1), 15 (0xD1), 10 (0xE1)

The numbers between parenthesis are the memory addresses of the nodes where those numbers were stored. 

What is the value returned by function X when the root of the just described tree is used as input argument? 

function X(root) 

   Node tmp=root->left

   if(tmp!=NULL) 

       while(tmp->left!=NULL AND tmp->right!=NULL) 

                        tmp=tmp->left

       return tmp 

end function

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on learn.gold.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome