Complete the sentence to describe the BST property: In a Binary Search Tree, the left subtree of a node contains only nodes with keys {{BLANK_1}} the node's key.
In a Binary Search Tree, the left subtree of a node contains only nodes with keys [1] the node's key.
The BST property states that all keys in the left subtree are less than the node's key.
Complete the sentence to describe the BST property: The right subtree of a node contains only nodes with keys {{BLANK_1}} the node's key.
The right subtree of a node contains only nodes with keys [1] the node's key.
According to the BST property, all keys in the right subtree are greater than the node's key.
Fix the error in this BST invariant statement: "For every node, all keys in the left subtree are {{BLANK_1}} or equal to the node's key."
For every node, all keys in the left subtree are [1] or equal to the node's key.
The BST property requires keys in the left subtree to be strictly less than the node's key, not equal or greater.
Fill both blanks to complete the BST invariant: "For every node, all keys in the left subtree are {{BLANK_1}} the node's key, and all keys in the right subtree are {{BLANK_2}} the node's key."
For every node, all keys in the left subtree are [1] the node's key, and all keys in the right subtree are [2] the node's key.
The BST property requires left subtree keys to be less than and right subtree keys to be greater than the node's key.
Fill all three blanks to complete the BST property check code snippet: "if node is not None: if node.left is not None and node.left.key {{BLANK_1}} node.key: raise ValueError('BST property violated'); if node.right is not None and node.right.key {{BLANK_2}} node.key: raise ValueError('BST property violated'); check(node.left); check(node.right)"
if node is not None: if node.left is not None and node.left.key [1] node.key: raise ValueError('BST property violated') if node.right is not None and node.right.key [2] node.key: raise ValueError('BST property violated') check(node.left) check(node.right)
The left child's key must be less than the node's key (violation if left.key >= node.key). The right child's key must be greater than the node's key (violation if right.key <= node.key). The code raises an error if these conditions are violated.