means how we will decide whether it will go (r+2,c+1) or (r+1,c+2)
Here how we will decide the path of the knight
@be10046.19, you need to traverse every possible path and then select the longest path , greedy approach will not work here , you can use backtracking for this purpose,
refer below discussion for detailed explanation of the code, make sure you have done n-queens and rat-in-a-maze problem ,then it will be easier for you to understand below solution
thanks bhaiya very well explained my only confusion was those 8 function calls thanks for clearing my confusion
bhaiya do the order of calling functions for different ways make any difference
no there is no difference
u can call the 8 functions in any order