Wayfair Onsite
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-04-06Added By Anonymous
Source: Link
Similar to guessing game .
You need to guess a word . The word will be there in a master list .
You are provided with a list of Words and number of character match at the right position .
1Example
2input {{"MOXTE",3} , {"AXCDG",0},{"MOQRT",2},{"FOUSE",4},{"POWER",1}
3
4return "MOUSE" I have proposed a brute force solution by eliminating non matching words from the master list and print what is left over in the master . But rejected . Any idea how to solve ?