Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use Algorithm::Loops qw(NextPermute);
    ...
    while (my @x = $perm->next) {
        print "@x";
    }
    
  2. or download this
    Algoritm::Loops::NextPermute says
    n n o o
    n o n o
    ...
    n o o n
    n o n o
    n o o n