Jump to content

N-queens problem: Difference between revisions

m
J: add comment
(→‎{{header|Curry}}: Three diffrant approaches)
m (J: add comment)
Line 998:
mask =: [ */@:~:&(|@-/) {
queenst=: comb2 (] #"1~ mask)&.|: perm</lang>
 
Note that the Roger Hui's approach (used here) matches the description attributed to Raymond Hettinger (in the Python implementation).
 
=={{header|Java}}==
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.