The eight queens problem is the problem of placing eight queens on an 8×8 chessboard such that none of them attack one another (no two are in the same row, column, or diagonal). More generally, the n queens problem places n queens on an n×n chessboard.
There are different solutions for the problem.
You can find detailed solutions at http://en.literateprograms.org/Eight_queens_puzzle_(C)
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- N Queen Problem | Backtracking-3
- Printing all solutions in N-Queen Problem
- N-Queen Problem | Local Search using Hill climbing with random neighbour
- N Queen Problem using Branch And Bound
- Number of cells a queen can move with obstacles on the chessborad
- N Queen in O(n) space
- Check if a Queen can attack a given cell on chessboard
- Count positions in a chessboard that can be visited by the Queen which are not visited by the King
- The Knight's tour problem | Backtracking-1
- m Coloring Problem | Backtracking-5
- Word Break Problem using Backtracking
- Warnsdorff's algorithm for Knight’s tour problem
- Rat in a Maze Problem when movement in all possible directions is allowed
- Travelling Salesman Problem implementation using BackTracking
- Perfect Sum Problem