TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Online executable Python solution to the Tuesday boy problem

2 pointsby daivdover 11 years ago

1 comment

x0054over 11 years ago
This answer is incorrect. There is a 1/4 chance that both children are boys, and each child has 1/2 chance of being borne a boy, regardless of what day his sibling was or will be borne on. The program arrives at the probability of 13/27 by excluding the possibility that both children might be borne on tuesday and both might be boys.
评论 #7036182 未加载