Riddle #903

logic

On the game show et´s Make a Deal, Monty Hall shows you three doors. Behind one of the doors is a new car, the other two hide goats. You choose one door, perhaps #1. Now Monty shows you what´s behind door #2 and it´s a goat.He gives you the chance to stay with original pick or select door #3. What do you do?
You should always abandon your original choice in favor of the remaining door (#3). When you make your first choice the chance of winning is 1 in 3 or 33%. When you switch doors, you turn a 2 in 3 chance of losing in the first round into a 2 in 3 chance of winning in the second round. Search: Monty Hall problem
72.32 %
86 votes

Similar riddles

See also best riddles or new riddles.

cleanlogicwhat am Ipoems

I’m teary-eyed but never cry, silver-tongued, but never lie. double-winged, but never fly, air-cooled, but never dry. What am I?
Mercury. The element looks shiny, silver, and is wet. The god Mercury has two wings but only uses them to run.
70.78 %
155 votes
cleanlogicsimple

Mr. Smith has 4 daughters. Each of his daughters has a brother. How many children does Mr. Smith have?
He has 5 children, all of the daughters have the same 1 brother.
73.11 %
243 votes
simplecleanlogic

Two workmen were repairing a roof. Suddenly, they both fell down the chimney and found themselves in the large fireplace. One man`s face was smeared with soot and one wasn`t. The one with the clean face washed his and the dirty man did not and went back to work. Why?
When the two men looked at each other, the clean man thought his face was dirty as well. The dirty man, looking at the first's place, thought his was clean.
73.75 %
73 votes
cleanfunnylogiclove

A doctor and a bus driver are both in love with the same woman, an attractive girl named Sarah. The bus driver had to go on a long bustrip that would last a week. Before he left, he gave Sarah seven apples. Why?
An apple a day keeps the doctor away!
72.48 %
261 votes
logicmathsimplecleanclever

There are 100 ants on a board that is 1 meter long, each facing either left or right and walking at a pace of 1 meter per minute. The board is so narrow that the ants cannot pass each other; when two ants walk into each other, they each instantly turn around and continue walking in the opposite direction. When an ant reaches the end of the board, it falls off the edge. From the moment the ants start walking, what is the longest amount of time that could pass before all the ants have fallen off the plank? You can assume that each ant has infinitely small length.
The longest amount of time that could pass would be 1 minute. If you were looking at the board from the side and could only see the silhouettes of the board and the ants, then when two ants walked into each other and turned around, it would look to you as if the ants had walked right by each other. In fact, the effect of two ants walking into each other and then turning around is essentially the same as two ants walking past one another: we just have two ants at that point walking in opposite directions. So we can treat the board as if the ants are walking past each other. In this case, the longest any ant can be on the board is 1 minute (since the board is 1 meter long and the ants walk at 1 meter per minute). Thus, after 1 minute, all the ants will be off the board.
74.27 %
102 votes
logiccleansimpleclever

A man needs to send important documents to his friend across the country. He buys a suitcase to put the documents in, but he has a problem: the mail system in his country is very corrupt, and he knows that if he doesn't lock the suitcase, it will be opened by the post office and his documents will be stolen before they reach his friend. There are lock stores across the country that sell locks with keys. The only problem is that if he locks the suitcase, he has no way to send the key to his friend so that the friend will be able to open the lock: if he doesn't send the key, then the friend can't open the lock, and if he puts the key in the suitcase, then the friend won't be able to get to the key. The suitcase is designed so that any number of locks can be put on it, but the man figures that putting more than one lock on the suitcase will only compound the problem. After a few days, however, he figures out how to safely send the documents. He calls his friend who he's sending the documents to and explains the plan. What is the man's plan?
The plan is this: 1. The man will put a lock on the suitcase, keep the key, and send the suitcase to his friend. 2. The friend will then put his own lock on the suitcase as well, keep the key to that lock, and send the suitcase back to the man. 3. The man will use his key to remove his lock from the suitcase, and send it back to the friend. 4. The friend will remove his own lock from the suitcase and get to the documents. Search: Man-in-the-middle attack
72.70 %
70 votes
logicmath

Two words are anagrams if and only if they contain the exact same letters with the exact same frequency (for example, "name" and "mean" are anagrams, but "red" and "deer" are not). Given two strings S1 and S2, which each only contain the lowercase letters a through z, write a program to determine if S1 and S2 are anagrams. The program must have a running time of O(n + m), where n and m are the lengths of S1 and S2, respectively, and it must have O(1) (constant) space usage.
First create an array A of length 26, representing the counts of each letter of the alphabet, with each value initialized to 0. Iterate through each character in S1 and add 1 to the corresponding entry in A. Once this iteration is complete, A will contain the counts for the letters in S1. Then, iterate through each character in S2, and subtract 1 from each corresponding entry in A. Now, if the each entry in A is 0, then S1 and S2 are anagrams; otherwise, S1 and S2 aren't anagrams. Here is pseudocode for the procedure that was described: def areAnagrams(S1, S2) A = new Array(26) A.initializeValues(0) for each character in S1 arrayIndex = mapCharacterToNumber(character) //maps "a" to 0, "b" to 1, "c" to 2, etc... A[arrayIndex] += 1 end for each character in S2 arrayIndex = mapCharacterToNumber(character) A[arrayIndex] -= 1 end for (i = 0; i < 26; i++) if A[i] != 0 return false end end return true end
68.01 %
59 votes
logicmysterydetective

A man entered his house and was about to hang up his coat when he heard his wife shout; "No John! Don’t do it!" There was a shot and he could hear his wife fall down. When he entered the kitchen he saw his wife and the gun lying on the floor. There was a police officer, a doctor, and a lawyer standing next to her. Peter immediately knew that the police officer had shot her. But how did he come to know?
The police officer has a name on his badge.
57.14 %
348 votes