Eight Queens Problem


Collapse Content

Now we shall take on the Famous Eight Queens Problem.

Challenge

For the Eight Queens Problem, Write a program to check if a given arrangement of the queens satisifes the constraints of the problem. That is, check if any of the queens are horizontally, vertically or diagonally in line with each other.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Challenge

For the Eight Queens Problem, write a program to find at least one solution. Instead of submitting the entire program, simply submit the generated solution in the box below. Your solution should be encoded in the way the test cases were encoded in the previous challenge. That is, as a set of 8 numbers, where each number represents the row position of the Queen in the respective column.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]