A lighter logic-puzzle challenge, borrowed from Presh Talwalkar (MindYourDecisions): crack a 3-digit code using only these hints:
- 682 — one digit is correct and in the correct position
- 645 — one digit is correct but in the wrong position
- 206 — two digits are correct but both in the wrong positions
- 738 — nothing is correct
- 780 — one digit is correct but in the wrong position
Pencil and paper are enough to solve it — but a program that cracks it is even better.
Send your solutions to DecisionManagementCommunity@gmail.com, or open a pull request to add yours here.