Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1000;
y_correct = 31875000;
assert(isequal(euler009(x),y_correct))
425
|
2 | Pass |
%%
x = 2000;
y_correct = 255000000;
assert(isequal(euler009(x),y_correct))
850
|
3 | Pass |
%%
x = 320;
y_correct = 1044480;
assert(isequal(euler009(x),y_correct))
136
|
4 | Pass |
%%
x = 5000;
y_correct = 3984375000
assert(isequal(euler009(x),y_correct))
y_correct =
3.9844e+09
2125
|
Extract leading non-zero digit
1205 Solvers
3375 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
Sum the elements in either diagonal of a square matrix
178 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!