Cody

Solution 2130644

Submitted on 16 Feb 2020 by Asif Newaz
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
vec = [2,4]; y_correct = 5; assert(isequal(OneDirection(vec),y_correct))

2   Pass
vec = [16:18]; y_correct = 2449; assert(isequal(OneDirection(vec),y_correct))

3   Pass
vec = [2:6]; y_correct = 61; assert(isequal(OneDirection(vec),y_correct))