category

Arrays & Hashing

Lookups, frequency maps, and the bread-and-butter of interviews.

Two Suminteractive

Return indices of the two numbers that add up to a target.

Easy
Group Anagramsinteractive

Cluster words that are rearrangements of the same letters.

Medium
Top K Frequent Elementsinteractive

Return the k values that appear most often — in O(n) with bucket sort.

Medium
Product of Array Except Selfinteractive

Each answer[i] is the product of all other elements — no division, in O(n).

Medium
Longest Consecutive Sequenceinteractive

Find the longest run of consecutive integers — in O(n), without sorting.

Medium