Interview Maths Puzzle Programming Arrays

Let c who can crack dis
5 - 4 = 23
8 - 1 = 63
6 -16 = 32
9 - 9 = 78
3 - 9 = 6
3 - 81 = ?
Genius heads try this

Read Solution (Total 8)

Interview Other Question

A mythical city contains 100,000 married couples but no children. Each family wishes to "continue the male line", but they do not wish to over-populate. So, each family has one baby per annum until the arrival of the first boy. For example, if (at some future date) a family has five children, then it must be either that they are all girls, and another child is planned, or that there are four girls and one boy, and no more children are planned. Assume that children are equally likely to be born male or female.

Let p(t) be the percentage of children that are male at the end of year t. How is this percentage expected to evolve through time?