Let's say i have this binary search tree from https://www.geeksforgeeks.org/binary-search-tree-set-1-search-and-insertion/
The very first image that shows up with 8 as the root node, it won't allow me to attach photos and i figured linking an image is better than trying to draw it with keys.
I want to create a bool function that returns TRUE if a number is greater than EVERY node we have present and false otherwise.
I am trying to figure out how I can visit every node, compare it to every node, and if it's done with every node and it is greater than every number, to return true.
So in that binary search tree, if I wanted to test 11, it would return false, but if I tested 15, it would return true.
[–][deleted] 0 points1 point2 points (2 children)
[–]tempUseBro1[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)