Cody

Solution 1837572

Submitted on 4 Jun 2019 by YIFEI ZHANG
  • Size: 7
  • This is the leading solution.
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   Pass
a = [ 2 1 3 4 ] tf_correct = false; assert(isequal(isItSnaky(a),tf_correct))

a = 2 1 3 4 [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 isItSnaky (line 2) In ScoringEngineTestPoint1 (line 3) In solutionTest (line 5)]

2   Pass
a = [ 6 1 2 5 4 3 ] tf_correct = true; assert(isequal(isItSnaky(a),tf_correct))

a = 6 1 2 5 4 3 [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 isItSnaky (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 7)]

3   Pass
a = [ 1 2 3 4 ] tf_correct = false; assert(isequal(isItSnaky(a),tf_correct))

a = 1 2 3 4 [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 isItSnaky (line 2) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 9)]

4   Pass
a = [ 7 8 9 10 6 1 2 11 5 4 3 12 16 15 14 13 ] tf_correct = true; assert(isequal(isItSnaky(a),tf_correct))

a = 7 8 9 10 6 1 2 11 5 4 3 12 16 15 14 13 [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 isItSnaky (line 2) In ScoringEngineTestPoint4 (line 6) In solutionTest (line 11)]

5   Pass
a = [ 1 2 3 2 1 ] tf_correct = false; assert(isequal(isItSnaky(a),tf_correct))

a = 1 2 3 2 1 [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 isItSnaky (line 2) In ScoringEngineTestPoint5 (line 3) In solutionTest (line 13)]

6   Pass
a = [ 6 5 4 3 ] tf_correct = false; assert(isequal(isItSnaky(a),tf_correct))

a = 6 5 4 3 [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 isItSnaky (line 2) In ScoringEngineTestPoint6 (line 3) In solutionTest (line 15)]

7   Pass
a = [ 1 2 3 4 5 6 7 8 9 ] tf_correct = false; assert(isequal(isItSnaky(a),tf_correct))

a = 1 2 3 4 5 6 7 8 9 [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 isItSnaky (line 2) In ScoringEngineTestPoint7 (line 5) In solutionTest (line 17)]

8   Pass
a = [ 2 1 1 1 ]; tf_correct = false; assert(isequal(isItSnaky(a),tf_correct))

[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 isItSnaky (line 2) In ScoringEngineTestPoint8 (line 3) In solutionTest (line 19)]