The question :
There is a 4 digit bike lock and each digit can be from 0-9. The correct code was forgotten, but the person knew that the lock had EXACTLY one 3
What is the maximum number of combinations that have to be tried to open the lock.
What I did was that suppose the unit digit contains 3, then for the other numbers, there are 1000 possible combinations - 000, 001, 002 till 997, 998, 999
This way by keeping 3 in each place value, it turns out to be 4000 combinations.
But I made a made a mistake not reading exactly ( reason in caps)
So if there is only one 3 in the combination, how do I know the maximum combinations need to be tried to open the lock
Thanks in advance.
There is a 4 digit bike lock and each digit can be from 0-9. The correct code was forgotten, but the person knew that the lock had EXACTLY one 3
What is the maximum number of combinations that have to be tried to open the lock.
What I did was that suppose the unit digit contains 3, then for the other numbers, there are 1000 possible combinations - 000, 001, 002 till 997, 998, 999
This way by keeping 3 in each place value, it turns out to be 4000 combinations.
But I made a made a mistake not reading exactly ( reason in caps)
So if there is only one 3 in the combination, how do I know the maximum combinations need to be tried to open the lock
Thanks in advance.