Check if a pair with given sum exists in array
Filed under PayU
The question
Given an array of integers and a target sum, determine whether there exists a pair of elements whose sum equals the target sum.
No write-up yet. Related questions below have one.
Related PayU questions
Collected from public candidate posts and coding forums. Updated Nov 2026.