Write a java program to find the route that connects
between Red and Green Cells.
General Rules for traversal
1. You can traverse from one cell to another
vertically, horizontally or diagonally.
2. You cannot traverse through Black cells.
3. There should be only one Red and Green cell and at
least one of each should be present. Otherwise the array is
invalid.
4. You cannot revisit a cell that you have already
traversed.
5. The maze need not be in the same as given in the
above example
No Answer is Posted For this Question
Be the First to Post Answer
what is struts-config-xml?and its use?
what is difference between equals and ==?
What is supplier in java?
How to access arraylist elements in java?
What are the differences between c++ and java?
Enlist few advantages of inheritance?
what is the reason behind non static method cannot be referenced from a static Context?
What does indexof mean?
Can we clone singleton object in java?
What is nullpointerexception?
Explain implementation and how is it different from conversion?
What classes of exceptions may be caught by a catch clause in java programming?