Cody

Solution 1945976

Submitted on 22 Sep 2019 by Shiv010
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 = 'MNOP'; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct))

A = 77 78 79 80 A = 1 1 1 1 y = 1

2   Pass
x = 'MN0P'; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

A = 77 78 48 80 A = 1 1 48 1 y = 0

3   Pass
x = 'INOUT1NOUT'; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

A = 73 78 79 85 84 49 78 79 85 84 A = 1 1 1 1 1 49 1 1 1 1 y = 0

4   Pass
x = 'UPANDDOWN'; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct))

A = 85 80 65 78 68 68 79 87 78 A = 1 1 1 1 1 1 1 1 1 y = 1

5   Pass
x = 'RUaMATLABPRO'; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

A = 82 85 2 77 65 84 76 65 66 80 82 79 A = 1 1 2 1 1 1 1 1 1 1 1 1 y = 0