Cracking the Four-Digit Lock
A lock has a four-digit code in which no digit repeats (leading zeros are allowed). Five guesses were made, each with no repeated digit. For each guess you are told how many of its digits appear in the code in the same position ("right place") and how many appear in the code but in a different position ("wrong place"): - 6932: 0 in the right place, 1 in the wrong place - 8753: 0 in the right place, 3 in the wrong place - 3621: 0 in the right place, 1 in the wrong place - 8354: 1 in the right place, 1 in the wrong place - 7295: 2 in the right place, 0 in the wrong place What is the code?
Related problems & prerequisites
Worth solving first
- Eight Claims About the Tally 5.0/10
- Five Queens Rule the Board 5.0/10
Source: Original puzzle written for AxiomIQ in the style of the code-breaking deduction puzzles popularized by Mastermind-type games.