Mind Confusing Interview Questions

16
Nov/09
0

Not everyone but quite a lot of people get annoyed with frustrating interview questions, especially the ones working in gaming industry. Here are some of the questions you may also get frustrated.

1) As far as a I heard from a friend of mine this question was asked during a google phone interview;
In a virtual country all the families want to have one and only one male baby (boy) and they really insist of having that baby; they contiue giving a birth until they get the boy and they stop having baby after that.
To give an example, let sey there are only 3 families; Family A,B,C

Family A gets the boy after 4 births
G G G B

and Family B gets the boy in the first place
B

and Family C gets it after 10 tries
G G G G G G G G G B

as a result, the number of girls is 12 and boys is 3.

What would you expect the percent of the population of boys to be in this country?

Well I really couldn’t find out the answer by a mathematical solution but by simulating the case in a java programme. The result is not that striking; 0.5 which I wasn’t expection to be though.