Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How can I improve this?

by lhoward (Vicar)
on Jul 25, 2000 at 07:12 UTC ( [id://24236]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @bar=sort {zc($a) <=> zc($b)} 
          permute([0..2],[0..2],[0..2],[0..2],[0..2]);
    ...
      return (grep /0/,@a[0..1])+(grep /0/,@a[3..4]);
    }
    
  2. or download this
    push @list,permute(nz($a),nz($b),$c,nz($d),nz($e));
    push @list,permute([0],nz($b),$c,nz($d),nz($e));
    ...
    push @list,permute(nz($a),nz($b),$c,nz($d),[0]);
    push @list,permute([0],[0],$c,nz($d),nz($e));
    etc...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-19 13:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found