Cody

Solution 1584491

Submitted on 16 Jul 2018 by Jiahang Li
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
x = [1 2 4 6 4]; y_correct = true; assert(isequal(beatMe(x),y_correct))

ans = logical 1

2   Pass
x = [1 8 3 2 4]; y_correct = true; assert(isequal(beatMe(x),y_correct))

ans = logical 1

3   Pass
x = [7 100003 4000002 6.020 4.1]; y_correct = false; assert(isequal(beatMe(x),y_correct))

ans = logical 0

4   Pass
x = [1 21 45 16 4]; y_correct = false; assert(isequal(beatMe(x),y_correct))

ans = logical 0

5   Pass
x = [1 3 3 2]; y_correct = false; assert(isequal(beatMe(x),y_correct))

ans = logical 0