Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 2;
n_correct = 5;
assert(isequal(bigNumRepeat(x),n_correct))
|
2 | Pass |
x = 10;
n_correct = inf;
assert(isequal(bigNumRepeat(x),n_correct))
|
3 | Pass |
x = [3 7 33 51 67 192 329 678 680 4731 10016 10081 35197 35199 51783 517839 517842];
n_correct = [5 5 21 3 21 101 51 inf inf 501 626 626 5001 251 2501 12501 inf];
for ii = 1:numel(x)
assert(isequal(bigNumRepeat(x(ii)),n_correct(ii)))
end
|
Remove the small words from a list of words.
672 Solvers
Number of 1s in the Binary Representation of a Number
356 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
511 Solvers
208 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!