In this problem we have to find the number of places the knight cannot visit right?
So for that first we have to find the number of places the knight can visit by setting it to 0, then while backtracking the place where the knight cannot visit we set it as 1.
This is the approach right?
But one thing i didnt understand was the count of the knights.
This is what i coded but after the base case
the variable ans=max(ans,count+1) is what i fail to understand. what is the logic behind this count function in this problem.
In the main the count is used to find the total no, of inputs right? but what is it in the recursive function?