Cody

Solution 1039043

Submitted on 31 Oct 2016 by Gareth Lee
  • Size: 20
  • 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 = [15,17]; y_correct = 0; assert(isequal(GetSumOf3Numbers(x),y_correct)) x = [1]; y_correct = 0; assert(isequal(GetSumOf3Numbers(x),y_correct)) x = [1,2,3]; y_correct = 6; assert(isequal(GetSumOf3Numbers(x),y_correct)) x = [4,9,2,6,1,7]; y_correct = [15,17,9,14]; assert(isequal(GetSumOf3Numbers(x),y_correct))