Foundations
Linear Structures
Hashing
Array and String Patterns
Recursion, Search, and Sorting
Problem Solving Patterns
Algorithm Searching
Sorting Algorithms
Array Algorithms
Grid Algorithms
Linear Structure Algorithms
Hashing Algorithms
Recursion and Backtracking
Greedy Algorithms
Tree and Heap Algorithms
Graph Algorithms
Dynamic Programming Algorithms
String Algorithms
Math Algorithms
Keyboard ready
Space plays. Arrow keys step. R restarts.
Live lesson state
Start with the goal: Explain the mental model and assumptions behind Remove Duplicates From Sorted Array
1 / 2
Arrays
See the input
Input for Remove Duplicates From Sorted Array: Use a write pointer to keep only the first copy of each value.
4
08
111
215
319
424
5left: 0 right: 5
Step 1 O(n) time - O(1) space
Visual progress 50%
Start with the goal: Explain the mental model and assumptions behind Remove Duplicates From Sorted Array: Show the input cells.
Guided progression
6% lesson
Step 1 / 2Learner goal
Speech settings Speed 1.0 · Volume 90%
Keyboard: Space play/pause · Arrow keys step · Page Up/Down change sections · R restart