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 Stats
Problem Comments
-
4 Comments
Show
1 older comment
William
on 15 Feb 2022
Chris -- The correct y-matrices for tests 3 and 5 seem to have changed since this problem was written.
ChrisR
on 16 Feb 2022
Thanks. I updated test 3. I'm seeing that test 5 still works.
Nikolaos Nikolaou
on 17 Mar 2022
Chris plz run my solution , as there are a bunch of issues with the test suite. In test 3 in particular : ['Guess the card in Fitch Cheney’s five-card trick'] . Am not sure as to why that matrix is there at all
ChrisR
on 19 Mar 2022
Nikolaos, thanks for pointing out the extraneous brackets. They do not affect the tests, and the tests seem to work. I'll look through your code to see what's going on.
Solution Comments
Show commentsProblem Recent Solvers3
Suggested Problems
-
14012 Solvers
-
Who is the smartest MATLAB programmer?
753 Solvers
-
733 Solvers
-
590 Solvers
-
175 Solvers
More from this Author279
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!