C Software Developer Interview Questions

3,500 c software developer interview questions shared by candidates

Given an integer array and another number, find a pair whose sum is given number. Best solution is to use unordered map <int, int> then use this logic map[sum - a[i]] = a[i]; // O(n) then, for each a[i], if map[a[i]] present then that will be the answer. // O(n)
Feb 27, 2018

Given an integer array and another number, find a pair whose sum is given number. Best solution is to use unordered map <int, int> then use this logic map[sum - a[i]] = a[i]; // O(n) then, for each a[i], if map[a[i]] present then that will be the answer. // O(n)

Viewing 3321 - 3330 interview questions

Glassdoor has 3,500 interview questions and reports from C software developer interviews. Prepare for your interview. Get hired. Love your job.