The problem as given is in NP (and probably not in P), but that means it's in P-SPACE. Your solution however uses exponential memory.
Abigail
In reply to Re: permutation algorithm
by Abigail-II
in thread permutation algorithm
by Basilides
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |