## Expedia Interview Question for Software Engineer / Developers

• 0

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

As stated equal probability for each sum.
Since 36 combinations are possible 36/12 = 3 each sum should occur 3 times for equal probability.
1 initially was occurring 0 times, so to occur 3 times there should be 3 zeros in second dice.
Now 12 should also occur 3 times, that can be only possible with 6,6 combinations
which means 6 should also be present 3 times in the other dice.

0 0 0 6 6 6

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

Ans. Label should be 0 0 0 6 6 6

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

good one...

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

great & simple

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

I think this can be done by labeling 3 faces of the dice with 0 and remainning 3 with 6..

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

Without relabelling, what is the probability of getting numbers from 1 to 12?
I think it is 1/12 (1/6 X 1/6)
So, if relabelling is a must, then i would just shift it...
1 2 3 4 5 6 to 2 3 4 5 6 1
Does my logic look fit? :-S

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

Without relabelling, what is the probability of getting numbers from 1 to 12?
I think it is 1/12 (1/6 X 1/6)
So, if relabelling is a must, then i would just shift it...
1 2 3 4 5 6 to 2 3 4 5 6 1
Does my logic look fit? :-S

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

How stupid am I !!! :(
Did not read the question correctly... i 'oxygen' is right

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

Hmmmm. Well, as stated, the simplest solution is to just relabel the dice with all zeros. The problem states that the sum must be between 1 and 12. Well, from 1 to 6 is between 1 and 12. Since every number on the untampered dice is of equal probability, and the tampered dice is guaranteed to show 0, we have satisfied the equal probability part as well.

I realize that we are "playing" a bit with the problem definition. However, stating that the sum must be "between 1 and 12" IS ambiguous...

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

"Me" Next time u appear for a written and wen u see this question.. Dont answer it.. Instead write on d answer sheet that question is ambiguous..

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

hahaha u r such an ass

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

and let the other guys take the job...and you keep salivating like a doggie...he he he...if 50% of current job seekers start thinking your ways, how easier it'll become for the rest 50% to land a good job...sounds cooooooooool...

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.

### 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.