Micro Free Course — 100% Free Learning

All lessons in this module are free to learn. Sign in with Google to save your progress.

1

Trees, Graphs, and Recursion

Recursion and backtracking; binary trees and traversals (DFS pre/in/post, BFS level order); BSTs and heaps; graph representations and BFS/DFS; weighted-graph algorithms (Dijkstra, topological sort).

Module Progress0% Complete
110 min total
10 Lessons
0 Completed

Module Content

Recursion & Backtracking

The mental model: solve a smaller problem; combine. Backtracking adds 'undo' for exploring all possibilities. FIND_VIDEO: search 'recursion backtracking interview pattern explained' — recommended channel: NeetCode / Abdul Bari. Aim for 12 min or under.

12 minVideo
Start

Recap — Recursion and Backtracking Templates

How to write any recursive function: base case + recursive case. The backtracking template that solves subsets, permutations, combinations.

11 minTutorial
Start

Binary Trees & Traversals

Pre-order, in-order, post-order, level-order. The four traversals you'll be asked about in every tree problem. FIND_VIDEO: search 'binary tree traversal DFS BFS interview' — recommended channel: NeetCode / Abdul Bari. Aim for 11 min or under.

11 minVideo
Start

Recap — Tree Traversal Patterns

DFS vs BFS, the three DFS orderings, and when each is the right tool for a tree problem.

10 minTutorial
Start

Binary Search Trees & Heaps

BST: ordered tree, O(log N) operations. Heap: complete tree for priority queue, O(log N) push/pop. FIND_VIDEO: search 'binary search tree heap priority queue interview' — recommended channel: NeetCode / Abdul Bari. Aim for 10 min or under.

10 minVideo
Start

Recap — BST and Heap Mental Models

When you need ordered traversal — BST. When you need top-K or 'always the min/max' — heap.

10 minTutorial
Start

Graphs: Representation & BFS/DFS

Adjacency list vs matrix. BFS for shortest unweighted path; DFS for connectivity and exploration. FIND_VIDEO: search 'graph BFS DFS representation interview' — recommended channel: NeetCode / William Fiset. Aim for 12 min or under.

12 minVideo
Start

Recap — Graph Representation and Traversal

The three ways to represent a graph; when BFS beats DFS; the patterns for grid/matrix problems treated as graphs.

10 minTutorial
Start

Graph Algorithms (Dijkstra, Topological Sort)

Weighted shortest path (Dijkstra) and dependency ordering (topo sort). The two named algorithms most likely to appear. FIND_VIDEO: search 'dijkstra topological sort algorithm explained' — recommended channel: NeetCode / Abdul Bari. Aim for 11 min or under.

11 minVideo
Start

Recap — Dijkstra and Topological Sort

Both algorithms come up regularly. Templates and the problem signals that trigger each.

10 minTutorial
Start
Trees, Graphs, and Recursion | DSA for Interviews | Topfolio