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.
4628 Solvers
902 Solvers
First non-zero element in each column
601 Solvers
3221 Solvers
Given a square and a circle, please decide whether the square covers more area.
364 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!