This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 77;
y_correct =4
assert(isequal(persistence(x),y_correct ))
y_correct =
4
i =
1
x =
49
i =
2
x =
36
i =
3
x =
18
i =
4
x =
8
y =
4
|
2 | Pass |
x = 976;
y_correct =5
assert(isequal(persistence(x),y_correct ))
y_correct =
5
i =
1
x =
378
i =
2
x =
168
i =
3
x =
48
i =
4
x =
32
i =
5
x =
6
y =
5
|
3 | Pass |
x =88869;
y_correct =7
assert(isequal(persistence(x),y_correct ))
y_correct =
7
i =
1
x =
27648
i =
2
x =
2688
i =
3
x =
768
i =
4
x =
336
i =
5
x =
54
i =
6
x =
20
i =
7
x =
0
y =
7
|
2111 Solvers
153 Solvers
205 Solvers
272 Solvers
1324 Solvers