Cody

Solution 1034881

Submitted on 28 Oct 2016 by Gergely Patay
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
a=[1 -1 2]; b=[2 4 1]; y_correct = 0; assert(isequal(PolSol(a,b),y_correct))

ans = 0

2   Pass
a=[ 5 2 0 5 3 0]; b=[ 3 2 5 1 0 2]; y_correct = 24; assert(isequal(PolSol(a,b),y_correct))

ans = 24