Long interview riddles

interviewlogiccleansimple

You are standing before two doors. One of the path leads to heaven and the other one leads to hell. There are two guardians, one by each door. You know one of them always tells the truth and the other always lies, but you don’t know who is the honest one and who is the liar. You can only ask one question to one of them in order to find the way to heaven. What is the question?
The question you should ask is "If I ask the other guard about which side leads to heaven, what would he answer?" It should be fairly easy to see that irrespective of whom do you ask this question, you will always get an answer which leads to hell. So you can chose the other path to continue your journey to heaven. This idea was famously used in the 1986 film Labyrinth. Here is the explanation if it is yet not clear. Let us assume that the left door leads to heaven. If you ask the guard which speaks truth about which path leads to heaven, as he speaks always the truth, he would say "left". Now that the liar , when he is asked what "the other guard (truth teller) " would answer, he would definitely say "right". Similarly, if you ask the liar about which path leads to heaven, he would say "right". As the truth teller speaks nothing but the truth, he would say "right" when he is asked what "the other guard( liar ) " would answer. So in any case, you would end up having the path to hell as an answer. So you can chose the other path as a way to heaven.
86.69 %
53 votes
interviewlogicclever

You have 3 jars that are all mislabeled. One jar contains Apples, another contains Oranges and the third jar contains a mixture of both Apples and Oranges. You are allowed to pick as many fruits as you want from each jar to fix the labels on the jars. What is the minimum number of fruits that you have to pick and from which jars to correctly label them?
Let's take a scenario. Suppose you pick from jar labelled as Apples and Oranges and you got Apple from it. That means that jar should be Apples as it is incorrectly labelled. So it has to be Apples jar. Now the jar labelled Oranges has to be Mixed as it cannot be the Oranges jar as they are wrongly labelled and the jar labelled Apples has to be Oranges. Similar scenario applies if it's a Oranges taken out from the jar labelled as Apples and Oranges. So you need to pick just one fruit from the jar labelled as Apples and Oranges to correctly label the jars.
86.00 %
40 votes
cleansimpleinterview

There is a low railroad bridge in your town. One day you see a large truck stopped just before the underpass. When you ask what has happened, the driver tells you that his truck is half of inch higher than the indicated height of the opening. This is the only road to his destination. What can he do to get through the underpass the easiest way?
Let enough air out of the tires to lower the truck.
85.67 %
39 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
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
interviewlogicmathclean

A man has two ropes of varying thickness (Those two ropes are not identical, they aren’t the same density nor the same length nor the same width). Each rope burns in 60 minutes. He actually wants to measure 45 mins. How can he measure 45 mins using only these two ropes. He can’t cut the one rope in half because the ropes are non-homogeneous and he can’t be sure how long it will burn.
He will burn one of the rope at both the ends and the second rope at one end. After half an hour, the first one burns completely and at this point of time, he will burn the other end of the second rope so now it will take 15 mins more to completely burn. so total time is 30+15 i.e. 45mins.
84.80 %
46 votes
logiccleaninterview

While mixing sand, gravel, and cement for the foundation of a house, a worker noticed a small bird hopping along the top of the foundation wall. The bird misjudged a hop and fell down one of the holes between the blocks. The bird was down too far for anyone to reach it and the hole was too small for it to fly out of. Someone suggested using two sticks to reach down into the hole and pull the bird out, but this idea was rejected for fear it would injure the fragile bird. What would be the easiest way to get the bird out of the hole without injuring it?
Since they had plenty of sand available, they could pour a little at a time into the hole. The bird would constantly keep shifting its position so that it stood on the rising sand.
84.48 %
45 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
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.
83.96 %
52 votes
simplecleanlogicinterview

You are blindfolded and 10 coins are place in front of you on table. You are allowed to touch the coins, but can't tell which way up they are by feel. You are told that there are 5 coins head up, and 5 coins tails up but not which ones are which. How do you make two piles of coins each with the same number of heads up? You can flip the coins any number of times.
Make 2 piles with equal number of coins. Now, flip all the coins in one of the pile. How this will work? lets take an example. So initially there are 5 heads, so suppose you divide it in 2 piles. Case: P1 : H H T T T P2 : H H H T T Now when P1 will be flipped P1 : T T H H H P1(Heads) = P2(Heads) Another case: P1 : H T T T T P2 : H H H H T Now when P1 will be flipped P1 : H H H H T P1(Heads) = P2(Heads)
83.74 %
34 votes
12
MORE RIDDLES >
Page 1 of 2.