logo

Crowdly

Browser

Додати до Chrome

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на learn.gold.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome