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 Frequency Counting
1 / 2
Hashing
Frequency Counting
Mental model
- Common for anagrams and duplicates.
Operations
increment count
Cost shape
Usually O(n) time and O(k) space
Watch out
Not removing zero-count keys when comparing maps.
Related algorithms
Valid AnagramSliding Window
Visual progress 50%
Start with the goal: Explain the mental model and assumptions behind Frequency Counting: Count map
Guided progression
10% 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