Given the root node of a Binary Search Tree, I'm trying to create a recursive search where all nodes within a given maximum and minimum range are found but in the LEAST amount of visits.
So essentially the set up to this question will be(I think):
public Node finder(Node root, int max, int min) {};
Create a function "check" which is recursively defined as
Alternatively for a easier code you could create two functions check_right and check_left.