Microsoft Interview Question for Software Engineer in Tests






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

I haven't understood the question.. can you be more clear?

- rkt September 19, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

sorry,
just i misplaced a word...
21200
01234
here, the bottom string represents the actual numbers(01234), the upper string represents their counts(the same also represents numbers)
so, there are two 0's, one 1, two 2's, zero '3', zero '4'. Find a sequence of length '9' which satisfy this property..
number->count
0->2
1->1
2->2
3->0
4->0

- rst September 19, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

6 2 1 0 0 0 1 0 0 0
0 1 2 3 4 5 6 7 8 9

- deep September 26, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

0 1 2 3 4 5 6 7 8
5 2 1 0 0 1 0 0 0

- Balaji September 19, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Is the idea that (2*0+1*1+2*2+0*3+0*4)=5 is the number of digits in the second row? So, write down 0 to 9 and then give each a count such that they add upto 9?

- Metta September 19, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

good, I guess thats a fair thought...

- rst September 20, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

sorry I didn't understand the question as well as logic above. Could somebody explain?

- manu September 20, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

521001000

- unknown September 20, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

how did u come up with (2*0+1*1+2*2+0*3+0*4)=5 ?? Would you mind explaining me the logic behind it..Thanks in Advance

- schummi September 20, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

we can easily generate this, like ....
800000000
710000000
and so on...........
i misunderstood the ques :P ???

- Anonymous September 20, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Please explain

- aa September 23, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Clearly 0th and 1st position has to be greater than 1 in case of length 9 digits.
To accumulate, We need 1 need to be placed for these 2 positive numbers, that make total 4 positions to be filled
0 1 2 3 4 5 6 7 8
d d 0 0 0 0 0 0 0
5 d 0 0 0 1 0 0 0
5 2 1 0 0 1 0 0 0

- Ankush Bindlish September 30, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Dear fellows who posted the solution. Would you also take a little effort to explain the question otherwise how would i appreciate your solution. Please someone take an initiative

- Anonymous October 27, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

cud someone please explain the question and answer clearly

- sp November 19, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

i can't understand this question, we have only 5 numbers,

two 0 one 1 and two 2.

we can make a sequence of size 5 at maximum.

- Anonymous March 04, 2011 | Flag Reply


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