Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;y_correct = 1;
assert(isequal(iccanobif(x),y_correct))
|
2 | Pass |
x = 9;y_correct = 124;
assert(isequal(iccanobif(x),y_correct))
|
3 | Pass |
x = 43;y_correct=36181429034;
assert(isequal(iccanobif(x),y_correct))
|
4 | Pass |
for flag=1:50
y(flag)=iccanobif(flag);
end
dy=diff(y);
assert(isequal(max(dy(1:25))+min(dy(1:25)),250750))
assert(isequal(max(dy)+min(dy),19910139546138))
sdy=sign(dy);
assert(isequal(sum(sdy==-1),8))
[m1,w1]=min(y(1:10));
[m2,w2]=min(y(11:20));
[m3,w3]=min(y(21:30));
[m4,w4]=min(y(31:40));
[m5,w5]=min(y(41:50));
assert(isequal([m1 m2 m3 m4 m5],[1 836 113815 106496242 21807674140]))
assert(isequal(w1*w2*w3*w4*w5,15))
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
35571 Solvers
Find the alphabetic word product
2322 Solvers
404 Solvers
Return elements unique to either input
550 Solvers
254 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!