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.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Tutorials
  3. 10 Days of Statistics
  4. Day 2: More Dice

Day 2: More Dice

Problem
Submissions
Discussions
Editorial

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 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 .

1 / 9
1 / 6
2 / 3
5 / 6

Need Help?


View discussions
View editorial
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy