Sobes.tech
Intern — Senior

Searching for a node in a binary search tree

livecode

Task condition

Create a function that takes as parameters a pointer to the root element of a BST and a value to find. The function should traverse the tree in search of the specified value and return a pointer to the found node, or nullptr if such a node does not exist.