7 kyu

Monty Hall Problem

352 of 1,153Excludos

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.

Fundamentals

Stats:

CreatedMar 6, 2015
PublishedMar 6, 2015
Warriors Trained3401
Total Skips284
Total Code Submissions4625
Total Times Completed1153
Java Completions352
Python Completions476
JavaScript Completions321
Ruby Completions27
C# Completions38
Total Stars35
% of votes with a positive feedback rating88% of 276
Total "Very Satisfied" Votes222
Total "Somewhat Satisfied" Votes44
Total "Not Satisfied" Votes10
Total Rank Assessments35
Average Assessed Rank
6 kyu
Highest Assessed Rank
4 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • Excludos Avatar
  • CompanionHypercube Avatar
  • vladkha Avatar
  • guioconnor Avatar
  • ParanoidUser Avatar
  • Chrono79 Avatar
  • JohanWiltink Avatar
  • chainsaw-maniac Avatar
  • hobovsky Avatar
  • ejini战神 Avatar
  • dfhwze Avatar
  • XoRMiAS Avatar
  • NikCSharp Avatar
  • saudiGuy Avatar
Ad