Question: What does the fun method return when the current node ( curr ) is null? private Node fun ( Node curr, int min, int max

What does the fun method return when the current node (curr) is null?
private Node fun (Node curr, int min, int max){
if (curr == null)
return null;
curr.lChild = fun (curr.lChild, min, max);
curr.rChild = fun (curr.rChild, min, max);
if (curr.value < min){
return curr.rChild;
}
if (curr.value > max){
return curr.lChild;
}
return curr;
a. The left child of the current node
b. null
c. The right child of the current node
d. The current node itself

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!