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 array length in java?
How do you reverse a string in java without using string buffer?
What is ‘has a’’ relationship in java?
what is diff bet iterator and enumeration?
make a method which any number and any type of argument and print sum of that arguments.....
What is the difference between length and length () in java?
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set?
What is the main purpose of java?
Under what circumstances an object reference be cast to an interface reference?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What is the r character?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?