Skip to main content
Back to course
Log in
Get started
Someone wanted to learn this too, so Grasp built them a personal learning path.
Create your own
Mastering Algorithms and Leetcode
·
Module 2
Arrays, Strings, and Hash-Based Lookup
1
Detecting Duplicates with Sets
Use a Set to detect repeated or previously encountered values in a single pass.
Use a Set to detect repeated or previously encountered values in a single pass.
2
Linear-Time Frequency Counting
Apply frequency counting to solve lookup and comparison problems in linear time.
Apply frequency counting to solve lookup and comparison problems in linear time.
3
Linear Time Complement Lookup using Hash Maps
Use a value-to-index map to solve a complement-lookup problem in linear time.
Use a value-to-index map to solve a complement-lookup problem in linear time.
4
String Canonicalization and Grouping
Transform strings into canonical keys for grouping equivalent items.
Transform strings into canonical keys for grouping equivalent items.
5
Introduction to Prefix Sum Arrays
Build a one-dimensional prefix-sum array and answer range-sum queries.
Build a one-dimensional prefix-sum array and answer range-sum queries.
6
In-Place Array Modification
Modify an array in place while preserving the portion that has already been processed.
Modify an array in place while preserving the portion that has already been processed.
7
Spiral Matrix Traversal
Traverse a matrix without omitting or revisiting cells at its boundaries.
Traverse a matrix without omitting or revisiting cells at its boundaries.
Previous module
Algorithmic Reasoning Without Guesswork
Next module
Two Pointers and Sliding Windows