Problem 53980. Determine whether a player solved a Cody problem
Write a function to determine whether a player has solved the specified Cody problems. The problem numbers are specified as a vector, and the player names are specified either as a character vector for a single name or a cell array of character vectors for multiple names. Because some names are not unique, the player IDs are included as well. Return 1 if the player solved the problem, 0 if the player did not solve the problem, and -1 if the problem does not exist. If there are m players and n problems, the first output should be an matrix. The second output should be a cell array of the problem titles.
I plan to check the tests regularly as players solve more problems. If you spot a problem, please feel free to contact me through my profile page.
Solution CommentsShow comments
Problem Recent Solvers3