Skip to main content

Binary Tree

Learn Binary Tree (Trees, Data Structures & Algorithms) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

What is a Binary Tree? A hierarchical structure where each node has AT MOST two children, conventionally called left and right . Unlike a linked list (one "next"), a tree branches - which is what makes recursive algorithms so natural for it: a tree is just "a node plus two smaller trees".

More lessons in Trees