Software Engineer Software Developer Interview Questions

665,682 software engineer software 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 1071 - 1080 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 665,682 interview questions and reports from Software engineer software developer interviews. Prepare for your interview. Get hired. Love your job.