Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Trying to solve N-Queens

by jeffa (Bishop)
on Sep 08, 2002 at 21:18 UTC ( [id://196095]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Data::Dumper;
    ...
       }
       print scalar @array, " solutions found\n";
    }
    
  2. or download this
    $copy = [@$board];
    
  3. or download this
    $copy = [ map { [@$_] } @$board];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://196095]
Approved by shadox
Front-paged by gmax
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2024-04-18 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found