Find a pair whose values add up to n in O(n) time
Filed under SurveySparrow
The question
The candidate was asked to find a pair of elements whose sum equals n, with O(n) time complexity.
No write-up yet. Related questions below have one.
Related SurveySparrow questions
Collected from public candidate posts and coding forums. Updated Nov 2026.