Skip to content

Instantly share code, notes, and snippets.

View laxmankumar2000's full-sized avatar

Laxman Kumar laxmankumar2000

  • Mathura UP
View GitHub Profile
@laxmankumar2000
laxmankumar2000 / countN_Queen.java
Created January 7, 2022 07:16
n_Queen_Problem
/*
You are given an empty chess board of size N*N. Find the number of ways to place N queens on the board, such that no two queens can kill each other in one move. A queen can move vertically, horizontally and diagonally.
Input Format
A single integer N, denoting the size of chess board.
Constraints
1<=N<=11