mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-12-08 19:06:00 +00:00
Add N-Queens.
This commit is contained in:
parent
e2ef46016d
commit
f2f5162aeb
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user