Flipkart Interview Question


Country: India




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

three 0s and three 6s.

- Adil March 06, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Yes thats what I told :). Good

- shadykiller March 06, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Can you explain question little bit more ? I could not get what does it mean "Sum of faces is evenly distributed between 1 to 12".

- dumbo March 06, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Well imagine case of 2 normal dice. The sums will be between 2-12 when you throw them. Also 2 will come less times ( 1 + 1) while 7 would come more times ( 4 + 3 , 3 + 4, 5 + 2, 2+5), therefore this is not even distribution.

You have to make sure that the probability of each number between 1-12 is equal. Having 3 faces 0 and 3 faces 6 does that. Calculate by yourself

- shadykiller March 06, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

36 possibilities and 12 possible values of sum, so each sum should come in 3 possibilities and hence three 0's and three 6's.

- rs January 02, 2014 | Flag
Comment hidden because of low score. Click to expand.
9
of 13 vote

what about writing, 12-17, so that possibility of coming 1-12 will be equal (always zero)

- Vishnu Agarwal April 16, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

that's great... :-)  if anyone will ask me this question, i'll say this first.. lolz

- mk13 May 26, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

+1, thats pretty smart and creative :)

- naveen January 22, 2014 | Flag
Comment hidden because of low score. Click to expand.
3
of 3 vote

The probability generating function sum(pix^i) of the even distribution {1,2,...,12} is 1/12(x+x^2+...+x^12)=G(x)H(x) where G(x)=1/6(x+x^2+...+x^6), where G(x) is the probability generating function of the regular fair dice.

Solving for H(x), you get H(x)=1/2*(x^0+x^6)=1/6(3x^0+3x^6) so the unmarked dice has 3 0's and 3 6's.

- AllanZ March 07, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

someone please point me to some theory links for these ( probability ) kind of questions.
specifically for interview's perspective

- NaMo June 17, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Agreed, 3 0s and 3 6s is the correct answer.

- eugene.yarovoi March 06, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

What about the numbering be 6,0,12,13,14,15 . In this case every number from 1-12 has a probability of 1/36 and thus evenly distributed between 1-12.
Dice 1 Dice 2
6 6
5 0
4 12
3 13
2 14
1 15

- Amanjot Singh September 02, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

if including 1 and 12 then three faces 0 and other three 6.
if 1 and 12 is not included then three faces 1 and other three 5.

- eshank.rastogi June 04, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

actually, i'm not sure if your latter solution would work because
num - probabilty
#2 - 3/36
#3 - 3/36
#4 - 3/36
#5 - 3/36
#6 - 6/36
#7 - 6/36
#8 - 3/36
#9 - 3/36
#10 - 3/36
#11 - 3/36

six - regular dice rolls 5 + fixed dice rolls 1 (3/36) AND
regular dice rolls 1+ fixed dice rolls 5 (3/36)
seven- regular dice rolls 6 + fixed dice rolls 1 (3/36) AND
regular dice rolls 2 + fixed dice rolls 5 (3/36)

- frankenthumbs July 16, 2012 | 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