---
title: "Discussion on \"N-Queens — LeetCode #51\" | Hashnode"
description: "Discussion on \"N-Queens — LeetCode #51\". The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other.\nGiven an integer n, return all distinct solutions to the n-queens puzzle. You may return the answer in any order.\nEach solution c..."
url: "https://hashnode.com/posts/n-queens-leetcode-51/63a98fc9511e26679e00a256"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [N-Queens — LeetCode #51](https://normanaranez.hashnode.dev/n-queens-leetcode-51?utm_source=hashnode&utm_medium=feed)

The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens puzzle. You may return the answer in any order. Each solution c...

Dec 26, 2022 · 2 min read · normanaranez.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Norman Aranez](https://hashnode.com/@Cody123)

@Cody123

  
[View profile](https://hashnode.com/@Cody123)

Helping you navigate the world of technology with clarity and precision.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
