Cody

Solution 1426483

Submitted on 28 Jan 2018
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
deck = 1:28; n = 10; out = [3 22 9 4 23 7 25 16 14 14]; assert(isequal(solitaire(deck, n),out))

out = 8 24 12 28 28 13 1 17 5 12

Assertion failed.

2   Fail
deck = 1:28; n = 9; out = [3 22 9 4 23 7 25 16 14]; assert(isequal(solitaire(deck, n),out))

out = 8 24 12 28 28 13 1 17 5 12

Assertion failed.