Knight problem (test cases not run)

@dakshi Pass your array by reference. You are using it’s copy so might not give you correct result

but array are always passed by reference only
array name refers to first elemnt address

@dakshi it is not passed by reference. It’s a copy and it would take a lot of time also.

@amankumarkeshu
Are you a TA at CB ?
If yes please message me once, need to discuss your solution suggested for this problem.

@dakshi
Your array passing was fine. Maybe my fellow TA was confused. You made an error with using reference variable for kl. I’ve corrected your code here. Have a look at it.


I got AC with this

If your doubt is resolved please close it.