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 currlChild, min, max;
curr.rChild fun currrChild, min, max;
if currvalue min
return curr.rChild;
if currvalue 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
