Qualcomm Interview Question
Software Engineer / DevelopersAt the first moment I thought the question was incomplete. It never said there are numbers starting from 1-50 and all numbers are unique. Only after checking winia's solution this was understood. So my question is was this question deliberately made in complete ? did anon counter question to get the answer ?
int findMissing(int arr[])
- winia September 06, 2008{
int sum=25*51;//sum from 1 to 50
for(int i=0;i<50;i++)
{
sum=sum-arr[i];
}
return sum;
}