Skip to content

Commit

Permalink
Update n-queens_algorithm.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shashmitha46 authored Oct 25, 2024
1 parent 6bbc6f7 commit 9cce1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/backtracking-algorithms/n-queens_algorithm.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Backtracking is a technique that builds the solution one piece at a time and rem

Here's the Python code for the algorithm:

```
```python
# Function to check if a queen can be placed on the board at [row][col]
def is_safe(board, row, col, n):
# Check left side of the row
Expand Down

0 comments on commit 9cce1e3

Please sign in to comment.