Advanced 14 planned topics Algorithms
Introduction to Trees
Learn binary trees, BST, and traversals. Free trees introduction for DSA.
Learning Outcomes
- Define root, leaf, height, and depth
- Traverse a binary tree in the four common orders
- Search and insert in a BST
- Know why unbalanced BSTs degrade to lists
Overview
Trees organize hierarchical data. Binary trees and binary search trees are the interview default.
This page covers traversals (inorder, preorder, postorder, level order) and BST search.
Balanced trees come after the basics.
What this course will cover
- 1. Terminology
- 2. Traversals
- 3. BST
- 4. Recursion on trees
- 5. Level order
- 6. Practice
Start a complete tutorial now
Full 6-level lessons are live for C, C++, Java, Python, and JavaScript. Use them while the remaining Trees lessons are added.