Trouble is, this will take a VERY long time to complete if @data is large.my $iter = permutations(\@data); while (my $p = $iter->next) { print "@$p\n"; }
In reply to Re: Longest Increasing Subset
by Anonymous Monk
in thread Longest Increasing Subset
by gilthoniel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |