Development Engineer Interview Questions

37,098 development engineer interview questions shared by candidates

Given an array with length n-1 which contains integers of the range 1 to n. Each element is distinct and appears only once. One integer is missing. Find the missing integer in linear time using O(1) memory. Now two integers are missing, find them out in linear time using O(1) memory. How about three?
avatar

Software Development Engineer

Interviewed at Microsoft

4
Jul 10, 2009

Given an array with length n-1 which contains integers of the range 1 to n. Each element is distinct and appears only once. One integer is missing. Find the missing integer in linear time using O(1) memory. Now two integers are missing, find them out in linear time using O(1) memory. How about three?

Viewing 21 - 30 interview questions

Glassdoor has 37,098 interview questions and reports from Development engineer interviews. Prepare for your interview. Get hired. Love your job.