- #1
- 2,168
- 193
I am trying to write a code to guess the secret number. For example, if I have a secret number called 412.
My code will take the inputs as
120 - 0
312 - 2
439 - 1
where the numbers on the right gives the position of the correct digit at the correct location. I have thought some codes but it seems they would contain many many lines of codes. Can someone recommend me some algorithms
My code will take the inputs as
120 - 0
312 - 2
439 - 1
where the numbers on the right gives the position of the correct digit at the correct location. I have thought some codes but it seems they would contain many many lines of codes. Can someone recommend me some algorithms