Puzzle 2
Puzzle 2
of 7 units ?)
An employee works for an employer for 7 days. The employer has a gold rod of 7
units. How does the employer pay to the employee, so that the number of employee’s
rod units increases by one at the end of each day? The employer can make at most 2
cuts in the rod.
(Hint- after the end of the day employee’s can’t spend any part of rod)
Solution:
The employer can pay for seven days by making 2 cuts in a way that he has 3 rods of
size 1, 2 and 4.
1st Day: Employer gives 1 unit cut.
2nd day: Takes back 1 unit cut from employee given on the first day and gives 2 unit
cut.
3rd Day: Gives 1 unit and then the employer is left with 4 unit rod lengths.
4th Day: Takes back cuts of 1 and 2 units. Gives the cut of 4 units.
5th Day: Gives cut of 1 unit to the employee.
6th Day: Takes back cut of 1 unit and gives a cut of 2 units.
7th Day: Gives cut of 1 unit to the employee.
Answer:
At-most 99 prisoners can be saved and the 100th prisoner has 50-50 chances of being
executed.
The idea is that every prisoner counts number of red hats in front of him.
100th prisoner says red if the number of red hats is even. He may or may not be saved,
but he conveys enough information to save 99th prisoner.
The 99’th prisoner decides his answer on the basis of answer of 100’th prisoner’s
answer. There are following possibilities and 99’th prisoner can figure out color of his
hat in every case.
If 100’th prisoner said ‘Red’ (There must have been even number of red hats in front
of him)
a) If 99’th prisoner sees even number of red hats in front of him, then his color is
black.
b) If 99’th prisoner sees odd number of red hats in front of him, then his color is red.
If 100’th prisoner said ‘Black’ (There must have been odd number of red hats in front
of him)
a) If 99’th prisoner sees even number of red hats in front of him, then his color is
Red.
b) If 99’th prisoner sees odd number of red hats in front of him, then his color is
Black.
The 98’th prisoner decides his answer on the basis of answer of 99’th prisoner’s
answer and uses same logic.
Similarly other prisoners from 97 to 1 are saved.
OR
They could come up with a strategy where initially two random guys stands at the
front, then if both of them have the same color then the third will stand behind them,
and in between them if their hats are of different color, now the 4th guy will also do
the same, he will stand at a position where hat color changes, else stands at the last
position and so on, so at last they will be sorted with same hat colors, 50 in front 50 at
back, last guy tells the color of the hat of the guy in front of him and the 51st guy
changes the color of his hat.
Last pick: 10
Player B picks 10, game over.
Case 2: When Player B starts picking from the right corner after Player A.
Puzzle 6 | 8 balls problem
Last Updated : 18 Jan, 2023
Puzzle: You are provided with 8 identical balls and a measuring instrument. 7 of the
eight balls are equal in weight and one of the eight given balls is defective and weighs
less. The task is to find the defective ball in exactly two measurements.
Puzzle 7– The Lion and the Unicorn
Question:
In the forest, a girl encounters a lion and a unicorn. Every Monday,
Tuesday, and Wednesday, the lion tells lies, but on the other days, he
tells the truth. The unicorn tells the truth the rest of the week but lies
on Thursdays, Fridays, and Saturdays. The lion confessed to the girl,
“Yesterday I was lying.” So was I, the unicorn said. When is it today?
Let’s suppose Condition 2 follows up, and C2 has the heaviest ball.
Step 3: Now divide C2 again into 3 equal groups of 81 each, naming them again C1, C2 and C3. Put C1 on
one side of the weighing machine and C2 on the other. This can give rise to 3 conditions:
Let’s suppose Condition 3 follows up, and C1 has the heaviest ball.