โ† Samsung questions

Find pair and triplet with given sum

Filed under Samsung

The question

Given an array A[] and a number x, find a pair and then a triplet in A[] that sum up to x.

No write-up yet. Related questions below have one.

Related Samsung questions

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