Day 3: Cards of the Same Suit | 10 Days Of Statistics | HackerRank Solution

Hello coders, today we are going to solve Day 3: Cards of the Same Suit HackerRank Solution which is a Part of 10 Days of Statistics Series.

Day 3: Cards of the Same Suit

Objective

In this challenge, we’re getting started with combinations and permutations. 

Task

You draw 2 cards from a standard 52-card deck without replacing them. What is the probability that both cards are of the same suit?

Solution – Cards of the Same Suit

The Correct answer is print (12/51).

Disclaimer: The above Problem (Cards of the Same Suit) is generated by Hacker Rank but the Solution is Provided by CodingBroz. This tutorial is only for Educational and Learning Purpose.

Leave a Comment

Your email address will not be published. Required fields are marked *