Data Structures & Algorithms
Ace coding interviews and write fast production code. Master Big-O complexity, Hash Maps, Two Pointers, Stacks & Queues, Binary Search, Trees/BFS, and Dynamic Programming.
What you'll build & master
- ✓ Analyze time and space complexity using Big-O notation
- ✓ Turn O(n^2) nested loops into O(n) solutions using Hash Maps and Two Pointers
- ✓ Model LIFO and FIFO workflows cleanly with Stacks and Queues
- ✓ Search sorted spaces in O(log n) with Binary Search
- ✓ Traverse trees and graphs with BFS/DFS and optimize overlapping subproblems with DP
Course Syllabus
Complexity & Patterns
- 18 min
Big-O Complexity & Growth Rates
Compare O(1), O(log n), O(n), O(n log n), and O(n^2) to spot performance bottlenecks before they hit production.
- 29 min
Hash Maps & Two Pointers
Eliminate O(n^2) nested loops using O(1) Hash Map lookups (Two Sum) and sorted Two Pointers.
- 39 min
Sliding Window Pattern
Solve contiguous subarray and substring problems in O(n) by expanding a right pointer and shrinking a left pointer.
Core Data Structures
- 18 min
Stacks & Queues
Solve balanced parentheses, undo history, and level-order processing using LIFO Stacks and FIFO Queues.
- 29 min
Linked Lists & Fast/Slow Pointers
Reverse a singly linked list in O(1) space and detect cycles or find the middle node using Floyd's Fast/Slow pointers.
- 39 min
Heaps & Priority Queues (Top-K Pattern)
Extract the smallest or largest item in O(log n) using a Binary Heap to solve Top-K and scheduling problems fast.
Searching & Trees
- 18 min
Binary Search in O(log n)
Search sorted arrays of a million items in at most 20 comparisons using clean, bug-free Binary Search.
- 29 min
Trees, BFS & DFS Traversal
Traverse hierarchical trees and graphs using Breadth-First Search (Queue) and Depth-First Search (Recursion).
- 39 min
Sorting: Merge Sort & O(n log n) Trade-Offs
Understand Divide & Conquer sorting with Merge Sort, stability, and why comparison sorts have an O(n log n) lower bound.
Graphs & Greedy
- 19 min
Graphs, Adjacency Lists & Shortest Path BFS
Model networks and dependencies with adjacency lists, track visited nodes to prevent infinite loops, and find shortest paths with BFS.
- 29 min
Greedy Algorithms & Backtracking
Make locally optimal choices cleanly with Greedy interval scheduling, and explore combinations systematically with Backtracking.