CodingReported in a candidate post, Jan 2020
Two elements with sum equal to x
Filed under IIT Gandhinagar
The question
Given an array of length n and a number x, find two elements in the array whose sum equals x, and optimize the solution.
No write-up yet. Related questions below have one.
Related IIT Gandhinagar questions
Collected from public candidate posts and coding forums. Updated Nov 2026.