23 Two sum (unsorted) Easy Complement Map

Find two numbers in an unsorted list that add up to a target and return their indices.

O(n) time · O(n) space
24 First non-repeating character Easy Frequency Count

Find the first character in a string that appears only once.

O(n) time · O(k) space
25 Group anagrams Medium Sorted Key

Group words that contain the exact same letters, like 'eat' and 'tea'.

O(n * k log k) time · O(n * k) space
26 Ice cream parlor Easy Complement Map

Given ice cream prices and a budget, find two flavors that cost exactly the budget.

O(n) time · O(n) space
27 Count pairs with difference k Easy Set Lookup

Count how many unique pairs of numbers in an array differ by exactly k.

O(n) time · O(n) space
28 Subarray sum equals k Medium Prefix Sum + Map

Count how many contiguous subarrays add up to exactly k.

O(n) time · O(n) space