Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 'xkayakyy';
p = 'kayak';
assert(isequal(p,pal(a)));
[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 pal (line 2)
In ScoringEngineTestPoint1 (line 3)
In solutionTest (line 3)]
|
2 | Pass |
a = '3.141592653589793238462643383279502884197169399375105820974944592307816406286';
p = '46264';
assert(isequal(p,pal(a)));
[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 pal (line 2)
In ScoringEngineTestPoint2 (line 3)
In solutionTest (line 5)]
|
3 | Pass |
a = 'truly I say: able was I ere I saw elba, but that is another story';
p = 'able was I ere I saw elba';
assert(isequal(p,pal(a)));
[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 pal (line 2)
In ScoringEngineTestPoint3 (line 3)
In solutionTest (line 7)]
|
How to find the position of an element in a vector without using the find function
2477 Solvers
Omit columns averages from a matrix
527 Solvers
Getting the absolute index from a matrix
211 Solvers
Rotate input square matrix 90 degrees CCW without rot90
380 Solvers
227 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!