Problem 44647. Win all the time!
Solution Stats
Problem Comments
-
2 Comments
David Verrelli
on 22 May 2018
Nice problem! Per Solution 1536525 I think you can safely increase the number of iterations in the Test Suite to 1000 or 2000. You could also add a second case, identical to the first except choosing L randomly. —DIV
Rafael S.T. Vieira
on 5 Oct 2020
Tip. This is called Game of Nim. https://en.wikipedia.org/wiki/Nim
Problem Recent Solvers15
Suggested Problems
-
Sort a list of complex numbers based on far they are from the origin.
5121 Solvers
-
Replace NaNs with the number that appears to its left in the row.
2622 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
8215 Solvers
-
Solving Quadratic Equations (Version 1)
470 Solvers
-
248 Solvers
More from this Author18
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!