Arrays & Hashing
Hash maps and sets as the universal O(1) lookup weapon, plus prefix/suffix products.
0 of 7 lessons complete · 152 min total
- Hash Maps: Trading Space for SpeedWhen an O(n^2) scan is secretly just asking 'does X exist / how many so far' — counting, complements, grouping by signature keys, and set membership.Lesson · 15 minNot completed
- Watch a Hash Map WorkFrequency counting and complement lookup animated.Animation · 9 minNot completed
- Prefix & Suffix Running TotalsPrecomputing cumulative values to answer range questions instantly — the trick behind Product of Array Except Self.Animation · 10 minNot completed
- Practice: Hashing WarmupsSet membership, frequency comparison, and the classic complement lookup.easy×33 problems · 0 solvedPractice · 30 minNot completed
- Practice: Hash Keys & BucketsDesigning the right hash key: char-count signatures, frequency buckets, and length-prefix encoding.medium×33 problems · 0 solvedPractice · 40 minNot completed
- Practice: Beyond the BasicsPrefix/suffix products, multi-set validation, and the sequence-start trick.medium×33 problems · 0 solvedPractice · 40 minNot completed
- Arrays & Hashing CheckpointChoosing hash keys, prefix-sum applications, and spotting hidden O(1)-lookup opportunities.Checkpoint · 8 minNot completed