Oracle Interview Puzzles

There are two tribes in Mars, Lie tribe and Truth Tribe.
Lie tribe always speaks lie, True tribe always speaks truth.
You meet three mars people and ask
From First Person: What tribe you belong to?, he replies something in his language which you don’t understand.
Second person tells that he is saying that he belongs to Lie Tribe.
Third person says that second person is lying.
What tribe does the third person belong to?
View SolutionSubmit Solution 1,355.0K views
 2 answers
 1 votes

Mr John have 25 horses, and he want to pick the fastest 3 horses out of those 25. He has only 5 track that means only 5 horse can run at a time,even he don’t have a stop watch . What is the minimum number of races required to find the 3 fastest horses?
View SolutionSubmit Solution 1,393.8K views
 2 answers
 1 votes

A man is the owner of a winery who recently passed away. In his will, he left 21 barrels (seven of which are filled with wine, seven of which are half full, and seven of which are empty) to his three sons. However, the wine and barrels must be split so that each son has the same number of full barrels, the same number of halffull barrels, and the same number of empty barrels. Note that there are no measuring devices handy. How can the barrels and wine be evenly divided? View SolutionSubmit Solution 1,352.4K views
 1 answers
 0 votes

You are trying to cook an egg for exactly fifteen minutes, but instead of a timer, you are given two ropes which burn for exactly 1 hour each. The ropes, however, are of uneven densities – i e , half the rope lengthwise might take only two minutes to burn. How can you cook the egg for exactly fifteen minutes?
View SolutionSubmit Solution 1,357.1K views
 1 answers
 0 votes

You have two strings whose only known property is that when you light one end of either string it takes exactly one hour to burn. The rate at which the strings will burn is completely random and each string is different.
How do you measure 45 minutes?
View SolutionSubmit Solution 1,354.4K views
 1 answers
 0 votes

Three men in a cafe order a meal the total cost of which is $15. They each contribute $5. The waiter takes the money to the chef who recognizes the three as friends and asks the waiter to return $5 to the men.
The waiter is not only poor at mathematics but dishonest and instead of going to the trouble of splitting the $5 between the three he simply gives them $1 each and pockets the remaining $2 for himself.
Now, each of the men effectively paid $4, the total paid is therefore $12. Add the $2 in the waiters pocket and this comes to $14…..where has the other $1 gone from the original $15?
View SolutionSubmit Solution 1,355.8K views
 2 answers
 0 votes

The king had his doubts about his sons’ fighting
skills, and so he sent his two eldest to the court magidan
for potions to help fight the ogre.
The magician kept his magic hidden, mindful of the
danger of his potent potion falling into the wrong
hands. In a secret but inconvenient compartment in his
laboratory, he hoarded:
1. four ogrefighters
2. three dragondestroyers
3. two evil wizardvanquishers
How many potions did he have to reach for in order
to make sure that he could give an ogrefighter to each
of the king’s two sons?View SolutionSubmit Solution 1,354.8K views
 1 answers
 0 votes

Hostile members of the Uti, Grundi and Yomi groups
were travelling to a conference. There were two members
from each group, one finned and one feathered.
The finned Martian was much stronger, and had to
protect her feathered friend. Never could a feathered
Martian be left alone with a finned Martian of another
group. The only time a feathered Martian was safe with
the finned Martian of another group was when the
feathered Martian of that enemy group was also
present.
The trip was quiet until they came to a deep ravine.
The only way to cross it was by swinging across on a
rope. But the rope was only strong enough to hold two
of them. And it wasn’t heavy enough for them to swing
it back over the ravine without someone to weigh it
down. How did they all cross the ravine?View SolutionSubmit Solution 1,356.6K views
 1 answers
 0 votes

You have 100 doors in a row that are all initially closed. you make 100 passes by the doors starting with the first door every time. the first time through you visit every door and toggle the door (if the door is closed, you open it, if its open, you close it). the second time you only visit every 2nd door (door #2, #4, #6). the third time, every 3rd door (door #3, #6, #9), ec, until you only visit the 100th door.
What state are the doors in after the last pass? Which are open which are closed?
Puzzle asked in: Google,Adobe,Amazon,OracleView SolutionSubmit Solution 1,366.3K views
 2 answers
 0 votes