Sample case doubt

here n=2 but (1,0)(1,1) is there , so there are 3 knights …how??

@Muskan-Gupta-598128740703036
This is not the board configuration
These are the positions of the 2 knights on the board

If your doubt is resolved please mark it as closed.

(1,0) (1,1) <- what does this thing means??? 1 means knight position??? right?? so there are 3 ones …thats what i wanna say …what does 3 ones means??

@Muskan-Gupta-598128740703036
In a 2*2 sized board
1,0 is position of first knight
1,1 is position of second knight

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

sir i tried to write the code , when i am doing dry run , i am not able to figure out where i am wrong …here i am just printing the board… and nothing is occuring at output

@Muskan-Gupta-598128740703036
Your approach is unfortunately completely incorrect.
Please see this for reference https://www.geeksforgeeks.org/place-k-knights-such-that-they-do-not-attack-each-other/

can this be done without making a new board?

@Muskan-Gupta-598128740703036
You can declare a global matrix of MAXN*MAXN

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.