Knight tour problem

https://practice.geeksforgeeks.org/problems/knight-walk/0

this code shows error on submission plz check and correct the code
reply at the earliest

Plz reply at the earliest


Here is your corrected code. Please check it. You made some mistakes in row[] and col[] arrays. Plus defining the structure alone doesn’t initialize the values. You have to assign it like t.x, t.y and t.distance.

plz help me to correct the struct cell part code in my code …i think that was giving error…
this will help me to strengthen obect oriented programming

No need to use structures here. It only leads to a complex code. And for structures, please read from the following link.

https://practice.geeksforgeeks.org/problems/possible-paths/0

WHY IS MY CODE GIVING TLE PLZ EXPLAIN…
I HAVE USED BFS

Mark this doubt as resolved and create a separate doubt for that.

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.