Data Structures

Binary Tree

Definition

A hierarchical data structure where each node has at most two children (left and right). A Binary Search Tree (BST) maintains the property that left children are smaller and right children are larger than the parent.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms