Back to course overview
Data Structures & Algorithms
Trees and Graphs
Write recursive functions, traverse binary trees and binary search trees, and explore graphs and grids with depth-first and breadth-first search.
3 lessons ยท 1h 36m
- 40mRecursionReading
Write functions that call themselves on a smaller input, with a base case that stops them.
- 31mTrees and BSTsReading
Represent a binary tree with nodes, traverse it in pre-, in- and post-order, and insert into a binary search tree.
- 25mGraphs, BFS, and DFSReading
Represent a graph as an adjacency list, explore it with depth-first search, and find shortest paths in a grid with breadth-first search.