We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I think the correct answer should be 1/2. Becasue in the question, it already said one of these two is a boy, so we only count the probablity on the other child, it's either boy or girl, so we have 50% chance to have a boy, hence 1/2
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 3: Conditional Probability
You are viewing a single comment's thread. Return to all comments →
I think the correct answer should be 1/2. Becasue in the question, it already said one of these two is a boy, so we only count the probablity on the other child, it's either boy or girl, so we have 50% chance to have a boy, hence 1/2