Failing perf case 4

I even unlocked the test case and tested it, it works. But it failing in the assessment.
I’ve handled the case where string length is greater than the number of elements in the board.

As in can see it, you haven’t checked if a previously visited node is getting revisited. This is causing the test case to return true when the answer is false . Also I think you should reverify the result on perf-case-4 . The test case is as follows :

Input:
4 4
R R R R
R C R R
R R R R
R R R C
RRRRRRRRRRRRRRR 

Output: 
false
1 Like

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.