Cody

Solution 1996894

Submitted on 30 Oct 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
a = [ 2 1 3 4 ] tf_correct = false; assert(isequal(isItSnaky(a),tf_correct))

a = 2 1 3 4

Assertion failed.

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

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

a = 1 2 3 4

Assertion failed.

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

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

a = 1 2 3 2 1

Assertion failed.

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

a = 6 5 4 3

Assertion failed.

7   Fail
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

Assertion failed.

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

Assertion failed.