Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

DFS for maze traversal

$
0
0

I am just starting to learn graphs...I am trying to implement a question.This question is a common one-There is a maze and there are 2 ppl in the maze- Jack and Robot..the robot can move only in all directions except the diagonal wise...there are obstacles represented by '|'... ' . ' represent a path...we have to find out whether robot can reach jack or not? I tried to implement this one...but i think there is some-problem with my recursive function

here is my code..


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>