Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chessboard and Queens #141

Open
suryaprakashpandey opened this issue Oct 2, 2023 · 3 comments
Open

Chessboard and Queens #141

suryaprakashpandey opened this issue Oct 2, 2023 · 3 comments

Comments

@suryaprakashpandey
Copy link
Collaborator

Write code in the preferred language and attach output with it.

Your task is to place eight queens on a chessboard so that no two queens are attacking each other. As an additional challenge, each square is either free or reserved, and you can only place queens on the free squares. However, the reserved squares do not prevent queens from attacking each other.

How many possible ways are there to place the queens?

Input
The input has eight lines, and each of them has eight characters. Each square is either free (.) or reserved (*).

Output
Print one integer: the number of ways you can place the queens.

Example:

Input:

........
..*.....
........
........
.....**.
...*....
........

Output: 65

@Harikaran1729
Copy link

Hello @suryaprakashpandey ... Could you please assign me this issue? I am currently a beginner to Opensource and I am learning C programming. I wish to contribute to this issue. Thank you!!

@vaishnavim141003
Copy link

I would like to work on this issue using python language -Vaishnavi Mahajan.
Cummins college of engineering.(SY)
Can you please assign this issue to me .

@vaishnavim141003
Copy link

vaishnavim141003 commented Oct 31, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants