Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

CAN YOU OPEN THE LOCK USING THESE CLUES? O ONE DIGIT IS RIGHT AND IN ITS PLACE ONE DIGIT IS RIGHT BUT IN THE WRONC PLACE TWO DIGITS ARE RIGHT BUT BOTH ARE IN THE WRONG PLACE

Computer Science Jan 25, 2021

CAN YOU OPEN THE LOCK USING THESE CLUES? O ONE DIGIT IS RIGHT AND IN ITS PLACE ONE DIGIT IS RIGHT BUT IN THE WRONC PLACE TWO DIGITS ARE RIGHT BUT BOTH ARE IN THE WRONG PLACE. ALL DIGITS ARE WRONG 211 ONE PICIT IS RIGHT BUT IN THE WRING PLACE.

Expert Solution

1. 042. Yes, 042 is the key of this lock. How? Please look into the below detailed explanation.

2. Begin with first number. Here one digit is right and well placed and the three digits we are having here is 682. If we take 6 as right digit then it will contradict with second statement where one digit is right but wrongly placed but in first and second statements both the 6 is at same place. So 6 is wrong and we will discard it. Now take 8 as a number but from the fourth statement 738 all the digits are wrong. So we will discard 8 too. Finally from this statement 2 is the correct digit at third place.

3. For the time being skip second statement before this first look into third statement having number 206. Here two digits are right but both are wrongly placed. We already discarded 6 and accepted 2 at third place. Hence other accepted number is 0 which is wrongly placed so the correct position of the 0 is first place. Now, Finally we have two numbers 0 at first place and 2 at third place.

4. Now look into the second statement having number 614. Here one digit is right but wrongly placed. In this number 6 has already been discarded. If we consider 1 as correct number then it will come either at first or third place because of wrongly placed condition but both these places are already filled. Hence we will discard 1 as well. So, our accepted digit is 4 but it is wrongly placed. So, the correct place of 4 is second place. Finally we have all the three digits as 0 at first place, 4 at second place and 2 at third place.

Our number will 042.

Note:- No need to look into last statement having number 380 as it is of no use, just given for confusion.

I hope you understood the problem with the solution. Still if you have any doubt please feel free to reach me through comments section. I will be more than happy to help you further.

Archived Solution
Unlocked Solution

You have full access to this solution. To save a copy with all formatting and attachments, use the button below.

Already a member? Sign In
Important Note: This solution is from our archive and has been purchased by others. Submitting it as-is may trigger plagiarism detection. Use it for reference only.

For ready-to-submit work, please order a fresh solution below.

Or get 100% fresh solution
Get Custom Quote
Secure Payment