Try this lock puzzle

You want to get through a security door, where you have to enter 3 digits as password, where each digit can be any from 0 to 9. The checking mechanism is, however, defective, and so will let you in if any 2 of your digits match with the password's. e.g. if the password is 087 and you enter 057, then you will be let in. You don't have much time and hence want to make as few tries as possible. What is the minimum number of tries in which you can definitely enter, and what are they (you need not give explicitly, if you describe a pattern).

0 comments:

Post a Comment