Intel Corporation interview question

How would you find a missing number in an array the most efficient way

Interview Answer

Anonymous

20 Oct 2022

Make two array's one without a missing number from whatever number add up both and subtract the difference and you'll have the missing number