Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n=1;
y_correct=1;
assert(isequal(ismunch(n),y_correct))
k =
1
tf =
1
tf =
1
tf =
logical
1
|
2 | Pass |
n=0;
y_correct=1;
assert(isequal(ismunch(n),y_correct))
k =
0
tf =
1
tf =
0
tf =
logical
1
|
3 | Pass |
n=153;
y_correct=0;
assert(isequal(ismunch(n),y_correct))
k =
1 5 3
tf =
1 3125 27
tf =
1 3125 27
tf =
logical
0
|
4 | Pass |
n=634;
y_correct=0;
assert(isequal(ismunch(n),y_correct))
k =
6 3 4
tf =
46656 27 256
tf =
46656 27 256
tf =
logical
0
|
5 | Pass |
n=3435;
y_correct=1;
assert(isequal(ismunch(n),y_correct))
k =
3 4 3 5
tf =
27 256 27 3125
tf =
27 256 27 3125
tf =
logical
1
|
6 | Pass |
n=3534;
y_correct=0;
assert(isequal(ismunch(n),y_correct))
k =
3 5 3 4
tf =
27 3125 27 256
tf =
27 3125 27 256
tf =
logical
0
|
7 | Pass |
n=438579088;
y_correct=1;
assert(isequal(ismunch(n),y_correct))
k =
4 3 8 5 7 9 0 8 8
tf =
256 27 16777216 3125 823543 387420489 1 16777216 16777216
tf =
256 27 16777216 3125 823543 387420489 0 16777216 16777216
tf =
logical
1
|
54193 Solvers
1836 Solvers
What is the next step in Conway's Life?
639 Solvers
1309 Solvers
Matrix which contains the values of an other matrix A at the given locations.
214 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!