Software Architecture Interview Questions

814 software architecture 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 761 - 770 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 814 interview questions and reports from Software architecture interviews. Prepare for your interview. Get hired. Love your job.