Cody

Solution 729979

Submitted on 7 Sep 2015 by Ashutosh datar
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))

num = 5

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

num = 2449

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

num = 61