hacktoberfest icon indicating copy to clipboard operation
hacktoberfest copied to clipboard

add algorithm in py

Open DiptanshuG opened this issue 2 years ago • 0 comments

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.
  • 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.

DiptanshuG avatar Oct 23 '23 12:10 DiptanshuG