## A numeric lock has 3 digit key

Question: A numeric lock has 3 digit key-hint-
(6,8,2)one number is correct well placed;
(6,1,4)one number is correct but wrong placed;
(2,0,6) tow numbers are correct but wrong placed;
(7,3,8) nothing is correct;
(7,8,0)one number is correct but wrong placed.

Answer: Hint 1 : (6,8,2) one number is correct & well placed.
Hint 2 : (6,1,4) one number is correct but wrong placed.
Hint 3 : (2,0,6) Two number are correct but wrong placed.
Hint 4: (7,3,8) Nothing is correct.
Hint 5 : (7,8,0) one number is correct but wrong placed.

From Hint 1 & 2 , we come to know that the number 6 is incorrect number.

From Hint 3 , we come to know that 2 & 0 are correct numbers.

From Hint 4 & 1 , we come to know that number 2 is correctly placed.
Hence the number will be _ _ 2

From Hint 3, 4 & 5 we come to know that 0 is wrongly placed in (2,06) & (7,8,0) .
Hence the number will be
(0 _ 2)

And from Hint 2 we come to know that the middle number is 4
====================

There fore the 3-digit number is ;
0 4 2