Question:

Which of the following correctly describes a binary search tree (BST)?

Show Hint

Understand the ordering property of BSTs for efficient searching and insertion.
Updated On: Jun 18, 2025
  • A tree where each node has at most two children, with left child $<$ node $<$ right child
  • A tree where each node has exactly two children
  • A tree where all leaves are at the same level
  • A tree where the root is the smallest value
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

A binary search tree (BST) is a binary tree where:
- Each node has at most two children (left and right).
- For any node, all values in the left subtree are less than the node’s value, and all values in the right subtree are greater.
Option (1) correctly describes this.
Option (2) is incorrect as nodes can have fewer than two children.
Option (3) describes a complete binary tree, not a BST.
Option (4) is false as the root is not necessarily the smallest.
Was this answer helpful?
0
0