// lessons
Lessons
Algorithms and data structures in learning order. Each lesson steps through real code, line by line.
01
Big-O: measuring growth
free// lessons for this module are on the way.
02
Arrays and hash maps
free// lessons for this module are on the way.
03
Sorting basics
free04
Two pointers and sliding window
free05
Stacks, queues and linked lists
free- data structurefree
Stack
A last-in, first-out collection: you only ever touch the top.
- time
- O(1)
- space
- O(n)
- data structurefree
Queue
A first-in, first-out collection: add at the back, remove from the front.
- time
- O(1)
- space
- O(n)
- algorithmfree
Reverse a linked list
Flip every next pointer in place, using three pointers: prev, curr and nxt.
- time
- O(n)
- space
- O(1)
06
Recursion
pro// lessons for this module are on the way.
07
Binary search
pro08
Trees: BFS and DFS
pro// lessons for this module are on the way.
09
Dynamic programming
pro// lessons for this module are on the way.