Monty Hall Problem
Description:
The Monty Hall problem is a probability puzzle base on the American TV show "Let's Make A Deal".
In this show, you would be presented with 3 doors: One with a prize behind it, and two without (represented with goats).
After choosing a door, the host would open one of the other two doors which didn't include a prize, and having been shown a false door, however the math proves that you significantly increase your chances, from 1/3 to 2/3 by switching.ask the participant if he or she wanted to switch to the third door. Most wouldn't. One would think you have a fifty-fifty chance of winning after
Further information about this puzzle can be found on https://en.wikipedia.org/wiki/Monty_Hall_problem.
In this program you are given an array of people who have all guessed on a door from 1-3, as well as given the door which includes the price. You need to make every person switch to the other door, and increase their chances of winning. Return the win percentage (as a rounded int) of all participants.
Similar Kata:
Stats:
Created | Mar 6, 2015 |
Published | Mar 6, 2015 |
Warriors Trained | 3401 |
Total Skips | 284 |
Total Code Submissions | 4625 |
Total Times Completed | 1153 |
Java Completions | 352 |
Python Completions | 476 |
JavaScript Completions | 321 |
Ruby Completions | 27 |
C# Completions | 38 |
Total Stars | 35 |
% of votes with a positive feedback rating | 88% of 276 |
Total "Very Satisfied" Votes | 222 |
Total "Somewhat Satisfied" Votes | 44 |
Total "Not Satisfied" Votes | 10 |
Total Rank Assessments | 35 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 8 kyu |