Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A = {'MATLAB','HURRAY','SPARKLY','KITTENS','FUN'};
B = 'KITTENS';
C = {'MATLAB','HURRAY','SPARKLY','FUN','KITTENS'};
assert(isequal(puzzler(A,B),C))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In puzzler (line 2)
In ScoringEngineTestPoint1 (line 4)
In solutionTest (line 3)]
|
2 | Pass |
A = {'HELP!','I''VE','FALLEN','ON THE','CAPS LOCK','KEY'};
B = 'stop shouting';
C = {'HELP!','I''VE','FALLEN','ON THE','CAPS LOCK','KEY'};
assert(isequal(puzzler(A,B),C))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In puzzler (line 2)
In ScoringEngineTestPoint2 (line 4)
In solutionTest (line 5)]
|
3 | Pass |
A = {'When','in the','human events','course','of'};
B = 'human events';
C = {'When','in the','course','of','human events'};
assert(isequal(puzzler(A,B),C))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In puzzler (line 2)
In ScoringEngineTestPoint3 (line 4)
In solutionTest (line 7)]
|
4 | Pass |
A = {'Soulwise','these','times','are','trying'};
B = 'times';
C = {'Soulwise','these','are','trying','times'};
assert(isequal(puzzler(A,B),C))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In puzzler (line 2)
In ScoringEngineTestPoint4 (line 4)
In solutionTest (line 9)]
|
9838 Solvers
4330 Solvers
Back to basics 8 - Matrix Diagonals
781 Solvers
198 Solvers
Solve a System of Linear Equations
3458 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!