For ease of programming you can consider the maze as a 2D
array with colors represented by below integer and
characters (in capital letters).
• B - Black
• W -White
• G- Green
• R- Red
R B W B W W W W
W W
B W B B W W W W
W W
W B W B W W W B
W W
W W B B W W W B
W W
W B W W B B B B
W B
W B W W B W W W
B W
W W B B B W W B
W W
W B W W B W B W
W W
B W B W W W W B
B W
W W W B W W W W
W G
Shortest Route Problem:
• Solution that finds the shortest Route between Red
and Green
 White will have 1 Weight.
 Red and Green carry no weights.
 Shortest path is the path with less weight when you
add up the weights in the path.
No Answer is Posted For this Question
Be the First to Post Answer
when should you use stringbuilder class in a program?
What is type casting?
Difference between JDK, JRE, JVM
16 Answers Deloitte, HCL, Mind Tree, Oracle, Reliance, TCS, ThinkBox,
can any body body expalin best definitions & best real time exaples for opps concepts.
What is aggregation?
What is native method in java?
Write a method to check if input string is palindrome?
What is a variable and constant?
How can we pass argument to a function by reference instead of pass by value?
Explain java coding standards for methods?
Can we have any other return type than void for main method?
Describe the syntax of multiple inheritance? When do we use such an inheritance?