Difficult interview riddles

logicmathstorycleaninterview

You are somewhere on Earth. You walk due south 1 mile, then due east 1 mile, then due north 1 mile. When you finish this 3-mile walk, you are back exactly where you started. It turns out there are an infinite number of different points on earth where you might be. Can you describe them all? It's important to note that this set of points should contain both an infinite number of different latitudes, and an infinite number of different longitudes (though the same latitudes and longitudes can be repeated multiple times); if it doesn't, you haven't thought of all the points.
One of the points is the North Pole. If you go south one mile, and then east one mile, you're still exactly one mile south of the North Pole, so you'll be back where you started when you go north one mile. To think of the next set of points, imagine the latitude slighty north of the South Pole, where the length of the longitudinal line around the Earth is exactly one mile (put another way, imagine the latitude slightly north of the South Pole where if you were to walk due east one mile, you would end up exactly where you started). Any point exactly one mile north of this latitude is another one of the points you could be at, because you would walk south one mile, then walk east a mile around and end up where you started the eastward walk, and then walk back north one mile to your starting point. So this adds an infinite number of other points we could be at. However, we have not yet met the requirement that our set of points has an infinite number of different latitudes. To meet this requirement and see the rest of the points you might be at, we just generalize the previous set of points. Imagine the latitude slightly north of the South Pole that is 1/2 mile in distance. Also imagine the latitudes in this area that are 1/3 miles in distance, 1/4 miles in distance, 1/5 miles, 1/6 miles, and so on. If you are at any of these latitudes and you walk exactly one mile east, you will end up exactly where you started. Thus, any point that is one mile north of ANY of these latitudes is another one of the points you might have started at, since you'll walk one mile south, then one mile east and end up where you started your eastward walk, and finally, one mile north back to where you started.
88.42 %
49 votes
interviewlogicmath

A bad king has a cellar of 1000 bottles of delightful and very expensive wine. A neighboring queen plots to kill the bad king and sends a servant to poison the wine. Fortunately (or say unfortunately) the bad king's guards catch the servant after he has only poisoned one bottle. Alas, the guards don't know which bottle but know that the poison is so strong that even if diluted 100,000 times it would still kill the king. Furthermore, it takes one month to have an effect. The bad king decides he will get some of the prisoners in his vast dungeons to drink the wine. Being a clever bad king he knows he needs to murder no more than 10 prisoners – believing he can fob off such a low death rate – and will still be able to drink the rest of the wine (999 bottles) at his anniversary party in 5 weeks time. Explain what is in mind of the king, how will he be able to do so?
Think in terms of binary numbers. (now don’t read the solution, give a try). Number the bottles 1 to 1000 and write the number in binary format. bottle 1 = 0000000001 (10 digit binary) bottle 2 = 0000000010 bottle 500 = 0111110100 bottle 1000 = 1111101000 Now take 10 prisoners and number them 1 to 10, now let prisoner 1 take a sip from every bottle that has a 1 in its least significant bit. Let prisoner 10 take a sip from every bottle with a 1 in its most significant bit. etc. prisoner = 10 9 8 7 6 5 4 3 2 1 bottle 924 = 1 1 1 0 0 1 1 1 0 0 For instance, bottle no. 924 would be sipped by 10,9,8,5,4 and 3. That way if bottle no. 924 was the poisoned one, only those prisoners would die. After four weeks, line the prisoners up in their bit order and read each living prisoner as a 0 bit and each dead prisoner as a 1 bit. The number that you get is the bottle of wine that was poisoned. 1000 is less than 1024 (2^10). If there were 1024 or more bottles of wine it would take more than 10 prisoners.
85.67 %
49 votes
logicsimpleinterview

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.
85.39 %
48 votes
logictrickyinterview

The Pope, Beyonce, POTUS, and Bill Gates are on the same plane. There are only 3 parachutes left for the 4 of them. POTUS says: "As the President, I think I should have the right to have a parachute, because I rule millions of people in the greatest nation of all." Beyonce says: "As one of the greatest singers of all-time, I think I should deserve to be safe. I bring tears and laughter to millions of people, and I'm an important contributor to pop music." Bill Gates says: "As one of the richest successful company owners, I think I should live because I'm on top of the economics cycle, creating jobs and incomes for millions of people. I am a wealthy and intelligent man." Finally, the Pope says: "I'm an old, religious man. I lived a life that's full, I helped millions of people find their way through God, I'm ready to let go of a parachute and to face my fate." Which one of them will abandon the parachute and die?
Did I ever mention that the plane was crashing? No one's gonna die.
85.06 %
65 votes
logicsimplecleverinterviewstory

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.
84.80 %
46 votes
cleansimpleinterview

A man is sitting in a pub feeling rather poor. He sees the man next to him pull a wad of £50 notes out of his wallet. He turns to the rich man and says to him, 'I have an amazing talent; I know almost every song that has ever existed.' The rich man laughs. The poor man says, 'I am willing to bet you all the money you have in your wallet that I can sing a genuine song with a lady's name of your choice in it.' The rich man laughs again and says, 'OK, how about my daughter's name, Joanna Armstrong-Miller?' The rich man goes home poor. The poor man goes home rich. What song did he sing?
Happy Birthday.
84.13 %
61 votes
interviewlogicmath

The Miller next took the company aside and showed them nine sacks of flour that were standing as depicted in the sketch. "Now, hearken, all and some," said he, "while that I do set ye the riddle of the nine sacks of flour. And mark ye, my lords and masters, that there be single sacks on the outside, pairs next unto them, and three together in the middle thereof. By Saint Benedict, it doth so happen that if we do but multiply the pair, 28, by the single one, 7, the answer is 196, which is of a truth the number shown by the sacks in the middle. Yet it be not true that the other pair, 34, when so multiplied by its neighbour, 5, will also make 196. Wherefore I do beg you, gentle sirs, so to place anew the nine sacks with as little trouble as possible that each pair when thus multiplied by its single neighbour shall make the number in the middle." As the Miller has stipulated in effect that as few bags as possible shall be moved, there is only one answer to this puzzle, which everybody should be able to solve.
The way to arrange the sacks of flour is as follows: 2, 78, 156, 39, 4. Here each pair when multiplied by its single neighbour makes the number in the middle, and only five of the sacks need be moved. There are just three other ways in which they might have been arranged (4, 39, 156, 78, 2; or 3, 58, 174, 29, 6; or 6, 29, 174, 58, 3), but they all require the moving of seven sacks.
83.74 %
34 votes
1
CHOOSE ANOTHER >
Page 1 of 1.