← Expedia questions

Print all pairs with given sum

Filed under Expedia · Also reported at Box8, Leanovate, Mindfire Solutions, Myntra, Navis, Siemens, Veritas

Given an integer array nums and a target integer target, return all unique pairs (a, b) in the array such that a + b == target. Each returned pair should be sorted, and the result list should contain…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Expedia questions

Collected from public candidate posts and coding forums. Updated Nov 2026.