you are given a secret string and you are given a guess is string. both staying have exactly 5 characters. assume that each letters occurs at most one time in the secret string and guess string. some of the letters in the gas is string occurs in the same position as the secret string. call the number of such letters as i. some other letters in the guess string occurs in the secret but in some other position. call the number of such latter as j. you have to output (#)
Comments
Leave a comment