Find all pairs whose sum is equal to a given value
Filed under Quantiphi
The question
Given an unsorted array, find all pairs whose sum equals a given value k, optimizing beyond an O(nlogn) approach.
No write-up yet. Related questions below have one.
Related Quantiphi questions
Collected from public candidate posts and coding forums. Updated Nov 2026.