N- Queens - backtracking

https://ide.codingblocks.com/s/45393

Question: https://practice.geeksforgeeks.org/problems/n-queen-problem/0

This code is running well. There is some bug in printing in the base case .If I am printing the whole array , it is working fine.Please help .

Please post link to the question as well.

You can refer these videos. It is very well explained.

https://practice.geeksforgeeks.org/problems/n-queen-problem/0

There is mistake in line no 50, it is supposed to be if (arr[i1][j]==1) not if (arr[i][j]==1)

Made the changes to your ide code https://ide.codingblocks.com/s/47070. Check now.