I think that with this kind of problem, you can process in two steps.
A first easy problem with small N (to test perms for example). And a harder problem with big N, which
oblige to find another algorithm.
http://oeis.org/A000166
2401 Solvers
707 Solvers
Remove white space from the string
168 Solvers
Split a string into chunks of specified length
475 Solvers
How long do each of the stages of the rocket take to burn?
77 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!