crocksucker solution
Excellent solution crocksucker! That was much much shorter and better than my first solution. Your solution hinges on the observation that the length of the coin toss sequence is between 2 + #tails and 2 + 2*(#tails). [img]/images/graemlins/ooo.gif[/img] I never thought of that.
There still is a slightly simpler solution which does not use the binomial theorem or combinations.
|