Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Derangements iterator (handles duplicate values)

by Roy Johnson (Monsignor)
on Jan 03, 2006 at 19:34 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://520703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-04-23 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found