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
Number of 1s in the Binary Representation of a Number
359 Solvers
Back to basics 12 - Input Arguments
527 Solvers
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
145 Solvers
441 Solvers
特定の値がベクトル内に含まれているかを確認するコードを書こう
146 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!