by a BFS problem for an Amazon assessment. 18/20 test cases passed in the end though. B)
Almost got filtered
Other urls found in this thread:
en.wikipedia.org
twitter.com
the state of zoomers
don't worry user, this filters 90% of Any Forums
Is the answer 0.5?
No
isn't it just 50%? am i insane?
see
can you just tell us what it is?
2/3
It's 1/3 you dumb retards lmfao
i thought that at first, but changed my mind. can you explain?
What is the answer then and why?
If the first ball is guaranteed gold, then it's not the box with the silver balls. That leaves the other two boxes. If the first ball isn't placed back, then either you have a box with one gold ball in it or a box with one silver ball in it, making that a 50% chance.
Please explain the fault in my logic.
its 2/3 right
bayes theorem. simple as
basically. it sounds like a monty hall problem, but if you have confirmed that you drew a gold ball, picking a box with gold in it does not factor into the problem. it's really just a coin flip, there is only one probability since you have confirmed that you drew gold the first time (not asking if you pick up a gold ball on first draw)
The probability that any chosen box will contain two of the same coin is 2/3, therefore the probability that the second coin from the same box will be the same colour is 2/3.
No
Nice
given that the chosen ball is a gold one we can eliminate the box with 2 silver balls
there are now 3 bals left 2 gold and one silver, chance of the nex one being gold is 2/3
0.345 per silver ball
but it doesn't ask if you pick the same coin, it specifically asks if you draw a gold, after you have already drawn a gold.
you have to draw from the SAME box though... you are not allowed to switch boxes
It's the same either way - I was generalising.
but you don't know what box you have. it may be either of those boxes containing a total of 3 balls
that logic really doesn't hold, since we're only interested in a single case, that means there are only two boxes for consideration since you drew a single ball and it is confirmed gold. you are left with either the far left or middle box. since you already drew gold, the next draw will either be a silver or gold. since those are the two possibilities, it's 50% chance, not 2/3.
Think harder
explain why i am wrong and you are right, i think my logic is pretty ironclad here. i am familiar with monty hall and all, but i don't think that is the case here