This is a verified interview question from Amazon-ml-summer-school. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Game of Names" covers key patterns like Other.
"Given a list of names and a grid of characters, determine which players are valid and their positions in the grid. A player is valid if they have exactly 11 characters in their name and all characters in their name appear in the grid at least once. The grid is represented as a 2D array of characters, and the names are represented as a list of strings. The output should be a list of tuples, where each tuple contains the name of a valid player and their position in the grid."
Join thousands of developers practicing for Amazon-ml-summer-school.