News for hackers. Stuff that matters.
Re:Coding Horror: Finishing The Game by pfedor on Thursday January 01, 2009 @02:10PM (#416580)
This can be used as a warm-up question for another fun problem (which a friend of mine was asked during a phone screen for a position at DE Shaw): What if instead of telling you that they have two children at least one of them a girl, someone told you that they have two children at least one of them named, say, Linda? The assumption is that there are no boys named Linda, that the likelihood for a girl to be named Linda is not affected by having an older brother or sister, etc. It's not a trick question, nor a sociological problem requiring any knowledge about names, it's a purely mathematical puzzle. And, as you may have guessed, the solution is not the same as in the previous case (with two children at least one of them girl).
Re:Coding Horror: Finishing The Game by brk on Thursday January 01, 2009 @02:47PM (#416609)
someone told you that they have two children at least one of them named, say, Linda

You would need a special case to determine if you were talking to Johnny Cash's father...

Re:Coding Horror: Finishing The Game by vlad on Thursday January 01, 2009 @02:49PM (#416611)
I'm not sure what you mean. Is the question still the same? Then why wouldn't the result be 2/3rds in either case?
Re:Coding Horror: Finishing The Game by pfedor on Thursday January 01, 2009 @04:41PM (#416694)
It is not the same question, they only seem that way. The information given is different. The answer in the second case depends on the popularity of the name Linda.