Qualcomm Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
1
of 1 vote

int findMissing(int arr[])
{
int sum=25*51;//sum from 1 to 50
for(int i=0;i<50;i++)
{
sum=sum-arr[i];
}
return sum;
}

- winia September 06, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

int missing_val(int *array,int length)
{
int val= Xor(1,2,3,..50).
for(i=0;i<length;i++)
{
val=Xor(val,array[i]);
}
return val;
}

- kalyan359 October 05, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

wow good logic

- Anonymous September 17, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

At 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 ?

- peace September 24, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

I think the question asked the solution of winia.
If we get those question in the interview, we should make it clear with the interview though.

- Anonymous November 02, 2009 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More