Arrays & Hashing

Trade memory for speed: use hash maps and sets to turn nested loops into single passes.

  1. 01

    Pair with Target Sum

    • easy
  2. 02

    Spot a Duplicate

    • easy
    • Pro
  3. 03

    Check Two Words Are Anagrams

    • easy
    • Pro
  4. 04

    Group the Anagrams

    • medium
    • Pro
  5. 05

    Most Frequent Values

    • medium
    • Pro
  6. 06

    Product of Everything Else

    • medium
    • Pro
  7. 07

    Longest Consecutive Run

    • medium
    • Pro
  8. 08

    Subarrays Summing to a Target

    • medium
    • Pro
  9. 09

    First Missing Positive

    • hard
    • Pro