in reply to permutations problem

And this is different than all binary combinations or the nigh-identical Combinatorics problem from two weeks ago that already gave you plenty to go on despite your not showing any effort there either?

(Aside from wiseacres giving you Haskell code there rather than Perl, of course)

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: permutations problem
by perlrocks (Acolyte) on Sep 17, 2009 at 20:09 UTC
    FYI. It IS identical to the Combinatorics problem however, if you read what i wrote (apparently you didn't) the constraint is to generate each combination sequentially since the whole list (which previous solutions provide) is too big to fit in memory. It might help you understand if you took the 20 seconds to read rather than surrendering to the compulsive need to reply.