Hard riddles

logic

Engineers and Managers

You have just purchased a small company called Company X. Company X has N employees, and everyone is either an engineer or a manager. You know for sure that there are more engineers than managers at the company. Everyone at Company X knows everyone else's position, and you are able to ask any employee about the position of any other employee. For example, you could approach employee A and ask "Is employee B an engineer or a manager?" You can only direct your question to one employee at a time, and can only ask about one other employee at a time. You're allowed to ask the same employee multiple questions if you want. Your goal is to find at least one engineer to solve a huge problem that has just hit the company's factory. The problem is so urgent that you only have time to ask N-1 total questions. The major problem with questioning the employees, however, is that while the engineers will always tell you the truth about other employees' roles, the managers may lie to you if they like. You can assume that the managers will do their best to confuse you. How can you find at least one engineer by asking at most N-1 questions?
You can find at least one engineer using the following process: Put all of the employees in a conference room. If there happen to be an even number of employees, pick one at random and send him home for the day so that we start with an odd number of employees. Note that there will still be more engineers than managers after we send this employee home. Then call them out one at a time in any order. You will be forming them into a line as follows: If there is nobody currently in the line, put the employee you just called out in the line. Otherwise, if there is anybody in the line, then we do the following. Let's call the employee currently at the front of the line Employee_Front, and call the employee who we just called out of the conference room Employee_Next. So ask Employee_Front if Employee_Next is a manager or an engineer. If Employee_Front says "manager", then send both Employee_Front and Employee_Next home for the day. However, if Employee_Front says "engineer", then put Employee_Next at the front of the line. Keep doing this until you've called everyone out of the conference room. Notice that at this point, you'll have asked N-1 or less questions (you asked at most one question each time you called an employee out except for the first employee, when you didn't ask a question, so that's at most N-1 questions). When you're done calling everyone out of the conference room, the person at the front of the line is an engineer. So you've found your engineer! But the real question: how does this work? We can prove this works by showing a few things. First, let's show that if there are any engineers in the line, then they must be in front of any managers. We'll show this with a proof by contradiction. Assume that there is a manager in front of an engineer somewhere in the line. Then it must have been the case that at some point, that engineer was Employee_Front and that manager was Employee_Next. But then Employee_Front would have said "manager" (since he is an engineer and always tells the truth), and we would have sent them both home. This contradicts their being in the line at all, and thus we know that there can never be a manager in front of an engineer in the line. So now we know that after the process is done, if there are any engineers in the line, then they will be at the front of the line. That means that all we have to prove now is that there will be at least one engineer in the line at the end of the process, and we'll know that there will be an engineer at the front. So let's show that there will be at least one engineer in the line. To see why, consider what happens when we ask Employee_Front about Employee_Next, and Employee_Front says "manager". We know for sure that in this case, Employee_Front and Employee_Next are not both engineers, because if this were the case, then Employee_Front would have definitely says "engineer". Put another way, at least one of Employee_Front and Employee_Next is a manager. So by sending them both home, we know we are sending home at least one manager, and thus, we are keeping the balance in the remaining employees that there are more engineers than managers. Thus, once the process is over, there will be more engineers than managers in the line (this is also sufficient to show that there will be at least one person in the line once the process is over). And so, there must be at least one engineer in the line. Put altogether, we proved that at the end of the process, there will be at least one engineer in the line and that any engineers in the line must be in front of any managers, and so we know that the person at the front of the line will be an engineer.
93.98 %
42 votes

logic

Mr. Black, Mr. Gray, and Mr. White

Mr. Black, Mr. Gray, and Mr. White are fighting in a truel. They each get a gun and take turns shooting at each other until only one person is left. Mr. Black, who hits his shot 1/3 of the time, gets to shoot first. Mr. Gray, who hits his shot 2/3 of the time, gets to shoot next, assuming he is still alive. Mr. White, who hits his shot all the time, shoots next, assuming he is also alive. The cycle repeats. All three competitors know one another's shooting odds. If you are Mr. Black, where should you shoot first for the highest chance of survival?
He should shoot at the ground. If Mr. Black shoots the ground, it is Mr. Gray's turn. Mr. Gray would rather shoot at Mr. White than Mr. Black, because he is better. If Mr. Gray kills Mr. White, it is just Mr. Black and Mr. Gray left, giving Mr. Black a fair chance of winning. If Mr. Gray does not kill Mr. White, it is Mr. White's turn. He would rather shoot at Mr. Gray and will definitely kill him. Even though it is now Mr. Black against Mr. White, Mr. Black has a better chance of winning than before.
93.70 %
40 votes

logic

Barrel of wine

There is a barrel with no lid and some wine in it. "This barrel of wine is more than half full," said Curly. Moe says, "No it's not. It's less than half full." Without any measuring implements and without removing any wine from the barrel, how can they easily determine who is correct?
Tilt the barrel until the wine barely touches the lip of the barrel. If the bottom of the barrel is visible then it is less than half full. If the barrel bottom is still completely covered by the wine, then it is more than half full.
93.55 %
39 votes

logic

Six jugs in a row

Six jugs are in a row. The first three are filled with coke, and the last three are empty. By moving only one glass, can you arrange them so that the full and the empty glasses alternate?
Move and then pour all coke from second glass to fifth glass.
93.39 %
38 votes

logic

Same Number of Handshakes

At a dinner party, many of the guests exchange greetings by shaking hands with each other while they wait for the host to finish cooking. After all this handshaking, the host, who didn't take part in or see any of the handshaking, gets everybody's attention and says: "I know for a fact that at least two people at this party shook the same number of other people's hands." How could the host know this? Note that nobody shakes his or her own hand.
Assume there are N people at the party. Note that the least number of people that someone could shake hands with is 0, and the most someone could shake hands with is N-1 (which would mean that they shook hands with every other person). Now, if everyone at the party really were to have shaken hands with a different number of people, then that means somone must have shaken hands with 0 people, someone must have shaken hands with 1 person, and so on, all the way up to someone who must have shaken hands with N-1 people. This is the only possible scenario, since there are N people at the party and N different numbers of possible people to shake hands with (all the numbers between 0 and N-1 inclusive). But this situation isn't possible, because there can't be both a person who shook hands with 0 people (call him Person 0) and a person who shook hands with N-1 people (call him Person N-1). This is because Person 0 shook hands with nobody (and thus didn't shake hands with Person N-1), but Person N-1 shook hands with everybody (and thus did shake hands with Person 0). This is clearly a contradiction, and thus two of the people at the party must have shaken hands with the same number of people.
93.39 %
38 votes

logic

Dead in Water and Glass

Romeo and Juliet are found dead in a small puddle of water, surrounded by broken glass. The apartment building they are found in is located next to the city's main train station. How did they die?
Romeo and Juliet are fish. A passing train rattled the shelf their tank was sitting on and knocked it off of the shelf. The tank broke and the fish died from being out of the water.
93.39 %
38 votes

logic

World's highest mountain

If measured from the center of the planet, which mountain on Earth is the highest? (it´s not the Everest)
Mount Chimborazo, in Educator. Everest is the highest above level sea level, but because of the way the Earth bulges at the center, Chimborazo (6010 meters, or 20 600 feet above sea level) is the highest when measured from the center of the planet. To put it another way, it is the furthest out into space or the closest to the sun.
93.39 %
38 votes

logic

Headwaiter in a restaurant

Betty signals to the headwaiter in a restaurant, and says, ''There is a fly in my tea.'' The waiter says ''No problem Madam. I will bring you a fresh cup of tea.'' A few minutes later Betty shouts, ''Get me the manager! This is the same cup of tea.'' How did she know? Hint: The tea is still hot.
Betty had already put sugar in her tea before sending it back. When the "new" cup came, it was already tasted sweet.
93.39 %
38 votes

logic

Gambling house

Even though the odds are always in favor of the gambling house, why does the establishment insist on a house limit on stakes?
Every casino in the world would go bankrupt without a house limit on stakes. Without it, gamblers would keep doubling their stakes until they won. No matter how bad a losing streak they were on, they would eventually win.
93.22 %
37 votes

logic

Round Manhole Covers

Why are manhole covers round? Do manhole covers really need to be circular?
Manhole covers are round so that they won't fall through the hole into the sewer below them. No matter how you turn the cover, you won't be able to push the cover through the hole. However, if you were to have square manhole covers, you would be able to rotate the cover such that one of the edges of the square cover is lined up with the diagonal line of the square hole, which would allow the cover to fall through, causing countless problems that the general public would rather avoid.
92.86 %
35 votes

1234
MORE RIDDLES >
Page 1 of 11.