hacktoberfest
hacktoberfest copied to clipboard
add algorithm in py
Problem
-N-Queens problem
Solution
-solution using backtracking algo
Changes proposed in this Pull Request :
-
- Add a Python script (
n_queens.py) to solve the N-Queens problem using backtracking.
- Add a Python script (
- Include functions to check the safety of queen placements and print the solutions.
- Allow customization of the board size by changing the value of N.