mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-09 04:08:42 +08:00
Add N-Queens.
This commit is contained in:
@ -29,7 +29,7 @@ Generate all possible configurations of queens on board and print a
|
|||||||
configuration that satisfies the given constraints.
|
configuration that satisfies the given constraints.
|
||||||
|
|
||||||
```
|
```
|
||||||
while there are untried conflagrations
|
while there are untried configurations
|
||||||
{
|
{
|
||||||
generate the next configuration
|
generate the next configuration
|
||||||
if queens don't attack in this configuration then
|
if queens don't attack in this configuration then
|
||||||
|
Reference in New Issue
Block a user