Been working through some of Hacker Ranks Cracking the Coding Interview problems and just recently got to this one: Binary Tree Problem.
In the problem description, the author goes over what is considered to be a valid binary tree.
"The value of every node in a node's left subtree is less than the data value of that node."
However they mention that this tree
is valid. But by their description of a valid binary search tree, wouldn't this tree be invalid because Node 4 has a left child of Node 5, which is greater. Or am I misunderstanding what makes a valid BST?