Cody

Solution 1615832

Submitted on 24 Aug 2018 by Tim
  • Size: 15
  • This is the leading solution.
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 = [5 3]; y_correct = 2; assert(isequal(the_deadly_sin(x),y_correct))

2   Pass
x = [10 10]; y_correct = 20; assert(isequal(the_deadly_sin(x),y_correct))

3   Pass
x = [4 8]; y_correct = 8; assert(isequal(the_deadly_sin(x),y_correct))

4   Pass
x = [30 12]; y_correct = 12; assert(isequal(the_deadly_sin(x),y_correct))

5   Pass
x = [42 91]; y_correct = 14; assert(isequal(the_deadly_sin(x),y_correct))

6   Pass
x = [700 80]; y_correct = 40; assert(isequal(the_deadly_sin(x),y_correct))

7   Pass
x = [638 899]; y_correct = 58; assert(isequal(the_deadly_sin(x),y_correct))

8   Pass
x = [819 949]; y_correct = 26; assert(isequal(the_deadly_sin(x),y_correct)) x = [500 500]; y_correct = 1000; assert(isequal(the_deadly_sin(x),y_correct))

Suggested Problems

More from this Author2