Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
deck = 1:28;
n = 10;
out = [3 22 9 4 23 7 25 16 14 14];
assert(isequal(solitaire(deck, n),out))
|
2 | Pass |
deck = 1:28;
n = 9;
out = [3 22 9 4 23 7 25 16 14];
assert(isequal(solitaire(deck, n),out))
|
Replace NaNs with the number that appears to its left in the row.
2018 Solvers
3968 Solvers
Increment a number, given its digits
562 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
MATCH THE STRINGS (2 CHAR) very easy
250 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!