Which of the following is true about a binary search tree?
17 views
- The left child of a node has a smaller value than the node, while the right child has a larger value. (Correct Answer)
- The left child of a node has a larger value than the node, while the right child has a smaller value.
- The left and right children of a node have the same value as the node.
- A binary search tree is not a valid type of tree.
Explanation
Answer: a) The left child of a node has a smaller value than the node, while the right child has a larger value.