N-queens problem: Difference between revisions
Content added Content deleted
(→{{header|Curry}}: Three diffrant approaches) |
m (J: add comment) |
||
Line 998: | Line 998: | ||
mask =: [ */@:~:&(|@-/) { |
mask =: [ */@:~:&(|@-/) { |
||
queenst=: comb2 (] #"1~ mask)&.|: perm</lang> |
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}}== |
=={{header|Java}}== |