Questions tagged [longest-path]

106 questions
-4
votes
1 answer

My c++ program has stopped working

I tried to find the longest path in a matrix with consecutive digits which gives correct answer.The function call executes recursively till there is no consecutive digits nearby and it checks every time whether the cell is visited or…
1 2 3 4 5 6 7
8