Cody

Solution 2005547

Submitted on 6 Nov 2019
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))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In solitaire (line 2) In ScoringEngineSharedVariable1 (line 4) In solutionTest (line 3)]

Output argument "ans" (and maybe others) not assigned during call to "solitaire".

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In solitaire (line 2) In ScoringEngineSharedVariable1 (line 4) In solutionTest (line 3)]

Output argument "ans" (and maybe others) not assigned during call to "solitaire".