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 one third plus one third as a fraction?
Is java se free?
Can we have return statement in finally clause? What will happen?
How we can generate random numbers in java?
Why is a singleton bad?
can we declare private class in java file?
what is the reason behind non static method cannot be referenced from a static Context?
Which of the following can be referenced by a variable? A. The instance variables of a class only B. The methods of a class only C. The instance variables and methods of a class
as we know a static method could access static data and static method only. then how could main method call the object of aclass which is not static and other non static data
What is difference between hashset and hashmap in java?
What is Runtime class and its purpose?
What are voids?