Problem 1481. Game of Nim
55.56% Correct | 44.44% Incorrect
Last Solution submitted on Mar 15, 2023
Paul Berglund on 2 May 2013
For the test case [7 7 7] all of [1 7] [2 7] [3 7] should be valid responses, right? Also you don't have any test cases where the game is not winnable.
Solution CommentsShow comments
Problem Recent Solvers27
Create an n-by-n null matrix and fill with ones certain positions
More from this Author10
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!