Print pairs matching a given sum in a sorted array
Filed under Freshworks
The question
Write an algorithm to print all pairs in a sorted array adding up to a given sum.
No write-up yet. Related questions below have one.
Related Freshworks questions
Collected from public candidate posts and coding forums. Updated Nov 2026.