Skip to content

Create N_Queen's_position_Printing_in_grid_style#463

Open
soumyadeep2002ss wants to merge 1 commit intomanisha069:mainfrom
soumyadeep2002ss:patch-1
Open

Create N_Queen's_position_Printing_in_grid_style#463
soumyadeep2002ss wants to merge 1 commit intomanisha069:mainfrom
soumyadeep2002ss:patch-1

Conversation

@soumyadeep2002ss
Copy link

Enter the number of Queens: 4


| | Q | | |


| | | | Q |


| Q | | | |


| | | Q | |



| | | Q | |


| Q | | | |


| | | | Q |


| | Q | | |


Possible solutions exist for an 4-queen problem: 2

Enter the number of Queens: 4


  --- --- --- ---
 |   | Q |   |   |
  --- --- --- ---
 |   |   |   | Q |
  --- --- --- ---
 | Q |   |   |   |
  --- --- --- ---
 |   |   | Q |   |
  --- --- --- ---


  --- --- --- ---
 |   |   | Q |   |
  --- --- --- ---
 | Q |   |   |   |
  --- --- --- ---
 |   |   |   | Q |
  --- --- --- ---
 |   | Q |   |   |
  --- --- --- ---

Possible solutions exist for an 4-queen problem: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant