You are viewing a single comment's thread. Return to all comments →
In a 52 card deck there are: - 4 suits - 13 cards per suit.
We want to find: P(2 cards of same suit wo/ replacement)
Favorable outcomes: 13C2 = 13!/2!(13-2)!
Total possibilities: 52C2 = 52!/2!(52-2)!
Since there are 4 suits: P(X) = 4 * 13C2/52C2
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Day 3: Cards of the Same Suit
You are viewing a single comment's thread. Return to all comments →
In a 52 card deck there are: - 4 suits - 13 cards per suit.
We want to find: P(2 cards of same suit wo/ replacement)
Favorable outcomes: 13C2 = 13!/2!(13-2)!
Total possibilities: 52C2 = 52!/2!(52-2)!
Since there are 4 suits: P(X) = 4 * 13C2/52C2