n a hotel, a man was sleeping when he heard a knock on the door. He shifted the blanket and stepped down from the bed. He waked to the door and opened it to find a stranger standing outside.
Upon opening the gate, that stranger said, "Pardon me, I must have made a mistake. I thought this was my room."
The stranger then walked the corridor and climbed down the stairs. The man closed the door and immediately called the security. He asked them to arrest that stranger immediately.
Why did he asked them to arrest that stranger? What made him suspicious?
On a random day , i was not able to logged-in with my bank password , so i contacted them on phone.
Our conversation is stated as :
myself : My password is altered.
myself : I am not able to logged-in.
customer-executive : Your password is distinct this time and it got 8 letters , out of which 2 are same of your previous password.
myself: Thanks , now i am able to logged-in.
* They have only one torch and the river is too risky to cross without the torch.
* If all people cross simultaneously then torch light wont be sufficient.
* Speed of each person of crossing the river is different.cross time for each person is 1 min, 2 minutes, 7 minutes and 10 minutes.
What is the shortest time needed for all four of them to cross the river ?
The initial solution most people will think of is to use the fastest person as an usher to guide everyone across. How long would that take? 10 + 1 + 7 + 1 + 2 = 21 minutes. Is that it? No. That would make this question too simple even as a warm up question.
Let's brainstorm a little further. To reduce the amount of time, we should find a way for 10 and 7 to go together. If they cross together, then we need one of them to come back to get the others. That would not be ideal. How do we get around that? Maybe we can have 1 waiting on the other side to bring the torch back. Ahaa, we are getting closer. The fastest way to get 1 across and be back is to use 2 to usher 1 across. So let's put all this together.
1 and 2 go cross
2 comes back
7 and 10 go across
1 comes back
1 and 2 go across (done)
A square island comprised of a square castle. A 14m wide trench surrounded the island from everywhere. Roman Empire wanted to invade the castle and gain the loot as well as possession of the island. They brought along wooden planks to cross the trench. However, they realized that the planks were just 13m long.
How did they use those planks to invade as well as capture the island ?
You are the ruler of a medieval empire and you are about to have a celebration tomorrow. The celebration is the most important party you have ever hosted. You've got 1000 bottles of wine you were planning to open for the celebration, but you find out that one of them is poisoned.
The poison exhibits no symptoms until death. Death occurs within ten to twenty hours after consuming even the minutest amount of poison.
You have over a thousand slaves at your disposal and just under 24 hours to determine which single bottle is poisoned.
You have a handful of prisoners about to be executed, and it would mar your celebration to have anyone else killed.
What is the smallest number of prisoners you must have to drink from the bottles to be absolutely sure to find the poisoned bottle within 24 hours?
10 prisoners must sample the wine. Bonus points if you worked out a way to ensure than no more than 8 prisoners die.
Number all bottles using binary digits. Assign each prisoner to one of the binary flags. Prisoners must take a sip from each bottle where their binary flag is set.
Here is how you would find one poisoned bottle out of eight total bottles of wine.
Bottle 1 Bottle 2 Bottle 3 Bottle 4 Bottle 5 Bottle 6 Bottle 7 Bottle 8
Prisoner A X X X X
Prisoner B X X X X
Prisoner C X X X X
In the above example, if all prisoners die, bottle 8 is bad. If none die, bottle 1 is bad. If A & B dies, bottle 4 is bad.
With ten people there are 1024 unique combination so you could test up to 1024 bottles of wine.
Each of the ten prisoners will take a small sip from about 500 bottles. Each sip should take no longer than 30 seconds and should be a very small amount. Small sips not only leave more wine for guests. Small sips also avoid death by alcohol poisoning. As long as each prisoner is administered about a milliliter from each bottle, they will only consume the equivalent of about one bottle of wine each.
Each prisoner will have at least a fifty percent chance of living. There is only one binary combination where all prisoners must sip from the wine. If there are ten prisoners then there are ten more combination where all but one prisoner must sip from the wine. By avoiding these two types of combination you can ensure no more than 8 prisoners die.
One viewer felt that this solution was in flagrant contempt of restaurant etiquette. The emperor paid for this wine, so there should be no need to prove to the guests that wine is the same as the label. I am not even sure if ancient wine even came with labels affixed. However, it is true that after leaving the wine open for a day, that this medieval wine will taste more like vinegar than it ever did. C'est la vie.
You can see the figure or draw one of your own. The scenario is as shown. There are three houses represented with the triangle over the square. There are three utilities: W, G and E representing water, gas and electricity respectively.
Can you draw a line and get each utility into every house (9) total lines without ever crossing any line?
A petri dish kept in a lab has a colony of healthy bacteria. Every bacterium divides itself into two in exactly two minutes. Now the colony started with a single cell at 2 pm. If the petri dish was exactly half full of bacteria at 3 pm, when will the dish become full of bacteria?
Since every bacterium divides into two in two minutes and we know the fact that the dish was half filled with bacteria at 3 pm, after exactly 2 minutes, all will divide into two and will fill the petri dish. Thus, the petri dish will become full at 3:02 pm.
You are sitting in front of your interviewer. He gives you three envelopes. One of them contains an offer letter and the other two are empty. You pick up one of them. Now, the interviewer opens up one of the envelope lying on the table and you find out that it is blank.
Now, he gives you a chance to switch your envelope with the one on the table. Would you switch it? Why or why not?
Yes, you should switch the envelope. In the beginning when you picked up the envelope, you had a 1/3 probability of finding an offer letter in the envelope. There was 2/3 chance that the letter was there in the two envelopes on the table.
If you keep your selected envelope, you still have a 1/3 chance of finding an offer letter in that. However, since the interviewer has removed one empty envelope from the table, if you switch, you have a probability of 2/3 that the offer letter is inside that.
A clever robber breaks into a closed bank where he finds a clerk. He asks password of the safe from the clerk while pointing a gun on his forehead. Out of fear, the clerk manages to blurt out, “Every day, the password of the safe is changed. I can help you but please point away the gun as if you kill me, you will never be able to crack the password.
The robber ties the clerk on a chair and insert a cloth in his mouth. He then easily opens the safe after inserting the code and takes all the money before he flees.