Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Derangements iterator (handles duplicate values)

by Roy Johnson (Monsignor)
on Jan 03, 2006 at 19:34 UTC ( #520703=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    a b b a
    
  2. or download this
    b a a b
    
  3. or download this
    use strict;
    use warnings;
    ...
    
    #print "\nShould be:\n";
    #print "@$_\n" for sort {"@$a" cmp "@$b"} derange(@ARGV);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://520703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-12-20 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls