in reply to Longest Increasing Subset
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Longest Increasing Subset
by gilthoniel (Novice) on Oct 13, 2016 at 16:04 UTC |