in reply to Longest Increasing Subset

Just a guess, but maybe you're just not looking at the return value the right way.
my $iter = permutations(\@data); while (my $p = $iter->next) { print "@$p\n"; }
Trouble is, this will take a VERY long time to complete if @data is large.

Replies are listed 'Best First'.
Re^2: Longest Increasing Subset
by gilthoniel (Novice) on Oct 13, 2016 at 16:04 UTC
    perfect! Thanks, that solved my issue