Cody

Solution 1926743

Submitted on 9 Sep 2019 by Nikolaos Nikolaou
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; y_correct = 0; assert(isequal(rollOutIfOptimus(x),y_correct))

y = 0

2   Pass
x = 7; y_correct = 7; % x_coordinate=0+7 assert(isequal(rollOutIfOptimus(x),y_correct))

y = 7

3   Pass
x = 13; y_correct = 20;% x_coordinate=7+13 assert(isequal(rollOutIfOptimus(x),y_correct))

y = 20

4   Pass
x = 4; y_correct = 20; assert(isequal(rollOutIfOptimus(x),y_correct))

y = 20

5   Pass
x = 5; y_correct = 25;% x_coordinate=20+5 assert(isequal(rollOutIfOptimus(x),y_correct))

y = 25

Suggested Problems

More from this Author43