Google interview question

Find missing number in sum

Interview Answer

Anonymous

Sep 8, 2010

Assuming that you mean a sum of n numbers, you sum them all up and delete from the given sum to get the missing number?