jeeyeonLIM / HackerRank

0 stars 0 forks source link

Day 2: More Dice #7

Open jeeyeonLIM opened 4 years ago

jeeyeonLIM commented 4 years ago

Objective In this challenge, we practice calculating probability. We recommend you review the previous challenge's Tutorial before attempting this problem.

Task In a single toss of 2 fair (evenly-weighted) six-sided dice, find the probability that the values rolled by each die will be different and the two dice have a sum of 6.

image