Binary Trees | Types | BFS | DFS
Sep 21, 2024 · 6 min read · Introduction Arrays and linked lists are flat structures, whereas a tree is a hierarchical structure. If a tree has only 2 children, then it is called a binary tree. Terminology Root: The head of the tree is called the root node. Leaf node: A n...
Join discussion