Also reported as Finding Pairs With a Certain Sum (LeetCode 1865)
A oa question, reconstructed from 3 candidate reports. Sign in to read the write-up.