What property defines a binary search tree (BST)?
-
A
Every node must have exactly two children
-
B
Left subtree values are smaller and right subtree values are larger than each node
-
C
A sorted array is stored as a tree structure
-
D
Only leaf nodes contain data values