Cody

Solution 1981441

Submitted on 18 Oct 2019 at 9:50 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 = [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))

y = 0 y = 0 y = 6 y = 15 y = 15 17 y = 15 17 9 y = 15 17 9 14