Microsoft Interview Question
Software Engineer in Testssorry,
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
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?
we can easily generate this, like ....
800000000
710000000
and so on...........
i misunderstood the ques :P ???
I haven't understood the question.. can you be more clear?
- rkt September 19, 2010