Cody

Solution 1619197

Submitted on 29 Aug 2018 by HH
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))