Problem 44647. Win all the time!
Solution Stats
Problem Comments
-
2 Comments
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
Tip. This is called Game of Nim. https://en.wikipedia.org/wiki/Nim
Problem Recent Solvers13
Suggested Problems
-
1818 Solvers
-
Who knows the last digit of pi?
598 Solvers
-
Make an awesome ramp for a tiny motorcycle stuntman
400 Solvers
-
Create a square matrix of multiples
426 Solvers
-
452 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!