Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 77;
y_correct =4
assert(isequal(persistence(x),y_correct ))
y_correct =
4
f =
0
h =
49
f =
1
h =
36
f =
2
h =
18
f =
3
h =
8
f =
4
|
2 | Pass |
%%
x = 976;
y_correct =5
assert(isequal(persistence(x),y_correct ))
y_correct =
5
f =
0
h =
378
f =
1
h =
168
f =
2
h =
48
f =
3
h =
32
f =
4
h =
6
f =
5
|
3 | Pass |
%%
x =88869;
y_correct =7
assert(isequal(persistence(x),y_correct ))
y_correct =
7
f =
0
h =
27648
f =
1
h =
2688
f =
2
h =
768
f =
3
h =
336
f =
4
h =
54
f =
5
h =
20
f =
6
h =
0
f =
7
|
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
Sum the entries of each column of a matrix which satisfy a logical condition.
136 Solvers
Celsius to Fahrenheit converter
388 Solvers
Deleting an element in a matrix
325 Solvers
327 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!