Course Solutions Uncategorized (Solved) : 3 10 Pts Complete Function Findmin Return Smallest Value Tree Smallest Value Bst Leftmost Q32358080 . . . .

(Solved) : 3 10 Pts Complete Function Findmin Return Smallest Value Tree Smallest Value Bst Leftmost Q32358080 . . . .

 

3. (10 pts) Complete the function findMin to return the smallest value in the tree. The smallest value in a BST is the leftmost node in the tree. If the tree is empty. return 99999 (done for you). Otherwise, check if the node has no left subtree if so, return that nodes value. Otherwise, keep processing the left subtree. TreeData findMin (TreeNodet( if (t-= NULL) return 99999; //special value while (t-NULL) // complete code here

3. (10 pts) Complete the function findMin to return the smallest value in the tree. The smallest value in a BST is

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post