The N-Queens puzzle is the problem of placing N chess queens on an N×N chessboard so that no two queens threaten each other. Thus, a solution requires that no two queens share the same row, column, or diagonal.
This algorithm is designed using recursion.
You can go live with this one https://nqueen.netlify.app/