i am getting that how u are filling boxes
N queen problem
Hello @shyamsisodiya,
Sir, is just iterating from one cell to another and placing the queen in it if there is no queen already placed in the same column or any of the two common diagonal in the matrix.
They starts placing the first queen at (0,0) index and then go to another row to place another queen at a safe place and so on.
Hope, this would help.
Give a like if you are placed.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.