Interview Questions

Given array of integers and a int variable say X .......

Software QA/Tests Interview Questions from Microsoft


(Continued from previous question...)

Given array of integers and a int variable say X .......

Q:
Microsoft Interview Question for SDE in tests about Coding
Given array of integers and a int variable say X. Need to find out all unique pairs from array which sums to X.
for e.g. arr[] = {1,2,3} , X=4
output - (1,3) (3,1)

(Continued on next question...)

Other Interview Questions