Question: In Binary Search Tree, the fun method. What would happen if the line node. left - insert ( node left, key ) : is replaced
In Binary Search Tree, the fun method. What would happen if the line node. left insertnode left, key: is replaced with node. left insertnoderight, key;Node fun Node node, int key if node nullreturn new Node d key ;if key node. keynode. right fun node: node. right,key;else if key node keynode left fun node: node. left, keyreturn node; A The BST would not be configured correct. B The BST would be reversed in order.O C The BST would become AVL Tree.O D The BST would become full BST
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
