Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
NdRowVector = [3,3,3,3,3];
y_correct = 113400;
assert(isequal(countNdPath(NdRowVector),y_correct))
|
2 | Pass |
NdRowVector = [1,3,3,3,3,1,1,1,3,3];
y_correct = 7484400;
assert(isequal(countNdPath(NdRowVector),y_correct))
|
3 | Pass |
NdRowVector = [2,2,2,2,2,2,2,1,1,2,2,2,2];
y_correct = 39916800;
assert(isequal(countNdPath(NdRowVector),y_correct))
|
Return the 3n+1 sequence for n
6167 Solvers
1836 Solvers
Calculate the Hamming distance between two strings
178 Solvers
188 Solvers
387 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!