Engineer Developer Interview Questions

467,453 engineer developer interview questions shared by candidates

In an array you have all the numbers from 1 through n (not in order) with one number missing. Find that number. Now, you have two numbers missing. Find both the numbers. Notes: O(n) time solution, O(1) extra space. n may be very large, so beware of overflows!
avatar

Software Engineer

Interviewed at Addepar

3.9
Mar 25, 2015

In an array you have all the numbers from 1 through n (not in order) with one number missing. Find that number. Now, you have two numbers missing. Find both the numbers. Notes: O(n) time solution, O(1) extra space. n may be very large, so beware of overflows!

Viewing 921 - 930 interview questions

Glassdoor has 467,453 interview questions and reports from Engineer developer interviews. Prepare for your interview. Get hired. Love your job.