Cody

Solution 1618242

Submitted on 28 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 = [1]; y = [1]; assert(isequal(individualNumSum(x),y))

ans = 1

2   Pass
x = [103]; y = [4]; assert(isequal(individualNumSum(x),y))

ans = 4

3   Pass
x=[189 22 39 88 55 485 769 215 3685 4589]; y = [9 4 3 7 1 8 4 8 4 8]; assert(isequal(individualNumSum(x),y))

ans = 9 ans = 9 4 ans = 9 4 3 ans = 9 4 3 7 ans = 9 4 3 7 1 ans = 9 4 3 7 1 8 ans = 9 4 3 7 1 8 4 ans = 9 4 3 7 1 8 4 8 ans = 9 4 3 7 1 8 4 8 4 ans = 9 4 3 7 1 8 4 8 4 8

4   Pass
x=[1111 2222 3333 4444 5555 6666 7777 8888 9999 0]; y = [4 8 3 7 2 6 1 5 9 0]; assert(isequal(individualNumSum(x),y))

ans = 4 ans = 4 8 ans = 4 8 3 ans = 4 8 3 7 ans = 4 8 3 7 2 ans = 4 8 3 7 2 6 ans = 4 8 3 7 2 6 1 ans = 4 8 3 7 2 6 1 5 ans = 4 8 3 7 2 6 1 5 9 ans = 4 8 3 7 2 6 1 5 9 0

5   Pass
x=[111 222 333 444 555 666 777 888 999 0]; y = [3 6 9 3 6 9 3 6 9 0]; assert(isequal(individualNumSum(x),y))

ans = 3 ans = 3 6 ans = 3 6 9 ans = 3 6 9 3 ans = 3 6 9 3 6 ans = 3 6 9 3 6 9 ans = 3 6 9 3 6 9 3 ans = 3 6 9 3 6 9 3 6 ans = 3 6 9 3 6 9 3 6 9 ans = 3 6 9 3 6 9 3 6 9 0

6   Pass
x=[11 3]; y = [2 3]; assert(isequal(individualNumSum(x),y))

ans = 2 ans = 2 3