c - example code for finding a node in a tree in c what is below function doing public object findobject k binarytreenode node root whilenode null int comp kcomparedtonodeentrykey ifcomp 0 node nodeleft else ifcomp0 node noderight else return nodeentry return nu - skillgun

it is trying to find if a value is available in a binary tree.

it is trying to find if a value is available in a binary search tree.

it is trying to find if a value is available in a non binary tree.

all are correct

Answer :(B)

it is trying to find if a value is available in a binary search tree.

Description :

this is the logic to find if a given key value is available in the given binary search tree. this is not a plain binary tree because only in binary search trees values will be stored in below order. for any node x, every key in left subtree of x is <= x's key. every key in right subtree of x is >= x's key.