Cody

Solution 1151364

Submitted on 1 Apr 2017 by bainhome
  • Size: 23
  • 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 = 1; y = 1; z = 1; assert(isequal(weightedConv(x,y),z))

2   Pass
x = 1:2; y = 3:4; z = [3 10]; assert(isequal(weightedConv(x,y),z))

3   Pass
x = 1:3; y = 4:6; z = [4 13 38]; assert(isequal(weightedConv(x,y),z))

4   Pass
x = 1:4; y = 5:8; z = [5 16 46 124]; assert(isequal(weightedConv(x,y),z))

5   Pass
x = 1:10; y = 2:11; z = [2,7,22,64,176,464,1184,2944,7168,17152]; assert(isequal(weightedConv(x,y),z))