If we place 1st queen in (0,0) 2nd in (1,2) for 3rd queen isItSafe function will be false for every case, and since board [row][col] = false lies within isItSafe so how is the spot marked false as code inside isitsafe will not be executed.
If we place 1st queen in (0,0) 2nd in (1,2) for 3rd queen isItSafe function will be false for every case, and since board [row][col] = false lies within isItSafe so how is the spot marked false as code inside isitsafe will not be executed.