掷两枚公平骰子一次,点数和为 5 或 8 的概率是多少?
What is the probability of getting a sum of 5 or 8 when rolling two fair dice once?
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: easy
标签: Statistics, Probability, Discrete
参考答案摘要
Total outcomes: 6×6 = 36. Sum=5 outcomes: (1,4),(2,3),(3,2),(4,1) → 4. Sum=8 outcomes: (2,6),(3,5),(4,4),(5,3),(6,2) → 5. Probability = (4+5)/36 = 9/36 = 1/4 = 0.25.
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。