The 16 in test case 4 should be a 6.
It's changed now. Good catch.
FYI: at this moment all solutions below score 150 are hard-coded ones
I've added some randomness to the test suite questions to stop the look-up tables from working properly. Thanks for the heads up on that. As you may have noticed, it's been a while since I submitted this problem!
Solutions aren't unique: f([1;2;3]) = {[1,2,3],[1,3,2],[2,1,3]}
Nice problem!
It's quite challenging!
combvec is no longer usable in Cody? No more Neural Network toolbox, I guess.
How to find the position of an element in a vector without using the find function
2482 Solvers
Find the stride of the longest skip sequence
106 Solvers
494 Solvers
Number of Even Elements in Fibonacci Sequence
682 Solvers
Is this is a Tic Tac Toe X Win?
444 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!