340 - Master-Mind Hints
Solution Description : Ad hoc problem 1 3 5 5 -> Secret Code 6 1 3 5 -> Guess In guess 3 values(1,3,5) match with secret code. So, total match=3. In guess 5 is 4th position and In Secret code 5 is also 4th position. print (strong match value, total match - strong match) Do this simulation. |
||||||||||