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
How objects of a class are created if no constructor is defined in the class?
How many bytes is a string?
In Serialization, whether you will use Static variables?
What methods are used to get and set the text label displayed by a button object?
What are design patterns and please explain?
Is a boolean variable?
Define how does a try statement determine which catch clause should be used to handle an exception?
Why do we need data structure in java?
what is the purpose of class "Object" which is base class for all classes?
Is a class subclass of itself?
Can private class be inherited in java?
What is a parameter in simple terms?