N Knights Recursion

Hi, could you please help me with this question?

–many mistake are thre in code… in issafe function your are not taking care of range of i and j (0<=i ,j<n)
–in nkighnt function your function is printing the matrix whenever your are reaching end of columnn. You should print your Matrix when you cover all your matrix…understand the topic watch videos then again code from starting.

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.