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.
This isn't a well thought out question. Firstly, guessing the sex of one child is always 1/2. Secondly, ordering doesn't matter. Even if you map it out as {BB, GG, BG, GB}, GG isn't possible and {GB,BG} are the same so you still end up with 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 →
This isn't a well thought out question. Firstly, guessing the sex of one child is always 1/2. Secondly, ordering doesn't matter. Even if you map it out as {BB, GG, BG, GB}, GG isn't possible and {GB,BG} are the same so you still end up with 1/2.