Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = [45 15 200 300];
arraygcdok=5;
assert(isequal(arraygcd(a),arraygcdok))
thegcd =
5
|
2 | Pass |
a = [140 7 14 35 42];
arraygcdok=7;
assert(isequal(arraygcd(a),arraygcdok))
thegcd =
7
|
3 | Pass |
a = [100 90 70 2000];
arraygcdok=10;
assert(isequal(arraygcd(a),arraygcdok))
thegcd =
10
|
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
546 Solvers
965 Solvers
123 Solvers
241 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!