Why this question is in linked list

is there any solution using linked list? if yes then provide .
First problem how take input
Second problem how we use recursion as it is not 2d array but 2d list.

This problem can be solved using recursion and backtracking and its present in that section itself.

in that question we used array i’m asking for linked list solution as this question is in this section

It is showing this question in the backtracking section for me.

in backtracking it is rat in maze but in linked list it is rat chases its cheese. If it’s not possible to solve with linked then tell also

Hi devendra, both of the questions you mentioned are showing in the backtracking section for me. If you can figure out how to make and maintain a 2-d linked list then i’d encourage you to try solving this question using that but for now just do it using a 2d array and backtracking