logicThere are 3 switches outside of a room, all in the 'off' setting. One of them controls a lightbulb inside the room, the other two do nothing.
You cannot see into the room, and once you open the door to the room, you cannot flip any of the switches any more.
Before going into the room, how would you flip the switches in order to be able to tell which switch controls the light bulb?

Flip the first switch and keep it flipped for five minutes. Then unflip it, and flip the second switch. Go into the room. If the lightbulb is off but warm, the first switch controls it. If the light is on, the second switch controls it. If the light is off and cool, the third switch controls it.

## Similar riddles

See also best riddles or new riddles.

logicYou have a sock drawer. It has 4 black socks, 8 brown socks, 2 white socks and 8 tan socks. You need to pull out a matching pair of socks in the dark. There is no light and you couldn’t see the socks. How many socks you should pull out in the dark to get one matching pair of socks?
.

Five. You have only four different colors of socks. If you pick 5, you can surely get one pair of matching socks.

logicYou are killed in a plane crash and find yourself in front of 2 doors: one leads to heaven and one will lead you to hell for eternity. There is an identical troll at each door. You find instructions posted on the wall behind you. You can ask only one question and you can only direct it to only one of the trolls. One troll will always lie to you - regardless of your question - and the other will always tell you the truth. And only the trolls themselves know which one will lie and which one will be truthful. That is all that you are told.... What is the one and only question that will ensure you passage to heaven, and why?

Ask any of the tolls this question. "If I were to ask the other troll which is the door to Heaven, which door would he point to?" Now when the troll answers by pointing to one of the doors you simply take the other door.

logicshortwhat am IIf will follow you for 1000 miles but not miss home. It desires neither food nor flowers. It fears not water, fire, knives, nor soldiers. But it disappears when the sun sets behind the western mountains. Who Am I?

Shadow.

logicmathAn intelligent trader travels from one place to another with 3 sacks having 30 coconuts each. No sack can hold more than 30 coconuts. On the way, he passes 30 check points. At each check point, he has to give one coconut for every sack he is carrying. What is the maximum number of coconuts that he can have with him at the end of his journey?

He will have 25 coconuts with him at the end. The trick is to reduce the number of sacks as you pass checkpoints. The first 10 checkpoints require 3 coconuts each, which empties his first sack. The next 15 checkpoints require 2 coconuts each, which will empty his second stack. Now, he is left with 1 sack and 5 more checkpoints. So, the 5 checkpoints will take 1 coconut each. Therefore, he will be left with 25 coconuts.

logicmathYou can easily "tile" an 8x8 chessboard with 32 2x1 tiles, meaning that you can place these 32 tiles on the board and cover every square.
But if you take away two opposite corners from the chessboard, it becomes impossible to tile this new 62-square board.
Can you explain why tiling this board isn't possible?

Color in the chessboard, alternating with red and blue tiles. Then color all of your tiles half red and half blue. Whenever you place a tile down, you can always make it so that the red part of the tile is on a red square and the blue part of the tile is on the blue square.
Since you'll need to place 31 tiles on the board (to cover the 62 squares), you would have to be able to cover 31 red squares and 31 blue squares. But when you took away the two corners, you can see that you are taking away two red spaces, leaving 30 red squares and 32 blue squares. There is no way to cover 30 red squares and 32 blue squares with the 31 tiles, since these tiles can only cover 31 red squares and 31 blue squares, and thus, tiling this board is not possible.

interviewlogicmathThree ants are sitting at the three corners of an equilateral triangle. Each ant starts randomly picks a direction and starts to move along the edge of the triangle. What is the probability that none of the ants collide?

So let’s think this through. The ants can only avoid a collision if they all decide to move in the same direction (either clockwise or anti-clockwise). If the ants do not pick the same direction, there will definitely be a collision. Each ant has the option to either move clockwise or anti-clockwise. There is a one in two chance that an ant decides to pick a particular direction. Using simple probability calculations, we can determine the probability of no collision.
P(No collision) = P(All ants go in a clockwise direction) + P( All ants go in an anti-clockwise direction) = 0.5 * 0.5 * 0.5 + 0.5 * 0.5 * 0.5 = 0.25

funnylogicshortIf you had a pizza with crust thickness 'a' and radius 'z', what's the volume of the pizza?

pi * z * z * a

cleanlogicshortwhat am II am not alive but I grow. I don't have lungs but I need air. What am I?

Fire.

logicA man is found dead in the desert. He is wearing only his underwear. Half of a straw is found nearby.
How did this man die?

The man was flying in a hot-air balloon with another man over the desert. The balloon started to go down because of excess weight. Both men would die if they ended up stranded in the desert, so they stripped down to their underwear and threw their clothes off the balloon to try to reduce the weight. Unfortunately, that didn't work well enough. So they drew straws to decide who would jump. The dead man pulled the short straw and jumped out of the balloon.

funnylogicJoe bets Tony $100 that he can predict the score of the football game before it starts. Tony agrees, but loses the bet. Why did Tony lose the bet?

Joe said the score would be 0-0 and he was right. "Before" any football game starts, the score is always 0-0.