Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
N = 1;
M_correct = 666;
assert(isequal(sixsixsix(N),M_correct))
|
2 | Pass |
N = 7;
M_correct = [666 151515 181818 272727 424242 636363 666666];
assert(isequal(sixsixsix(N),M_correct))
|
3 | Pass |
N = 25;
M_correct=[666 151515 181818 272727 424242 636363 666666 757575 878787 909090 105105105 114114114 117117117 138138138 153153153 162162162 165165165 177177177 186186186 210210210 213213213 225225225 234234234 237237237 258258258];
assert(isequal(sixsixsix(N),M_correct))
|
4 | Pass |
N = 63;
M_correct = [666 151515 181818 272727 424242 636363 666666 757575 878787 909090 105105105 114114114 117117117 138138138 153153153 162162162 165165165 177177177 186186186 210210210 213213213 225225225 234234234 237237237 258258258 273273273 282282282 285285285 297297297 306306306 330330330 333333333 345345345 354354354 357357357 378378378 393393393 402402402 405405405 417417417 426426426 450450450 453453453 465465465 474474474 477477477 498498498 513513513 522522522 525525525 537537537 546546546 570570570 573573573 585585585 594594594 597597597 618618618 633633633 642642642 645645645 657657657 666666666];
assert(isequal(sixsixsix(N),M_correct))
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
35550 Solvers
Remove the two elements next to NaN value
411 Solvers
390 Solvers
Implement simple rotation cypher
943 Solvers
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
168 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!