Work in HR? Unlock Free Profile

Microsoft Software Development Engineer In Test (SDET) Interview Question (student candidate)

"Given a range of numbers ordered from 1 to 1 million, what is the most efficient method to find a number that is missing within the range."
Add Tags [?]

Part of a Software Development Engineer In Test (SDET) Interview Review - one of 3,415 Microsoft Interview Reviews

Answers & Comments

of 2

Sum up all of the numbers from 1 to 1 million and subtract the sum from the sum of the range of numbers given in the problem to find the missing number.

- Interview Candidate on Apr 26, 2013

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.