Senior Software Engineer C Interview Questions

135 senior software engineer c 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 121 - 130 interview questions

Glassdoor has 135 interview questions and reports from Senior software engineer c interviews. Prepare for your interview. Get hired. Love your job.