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

Post New Answer

More Core Java Interview Questions

what is language and it responsibilities

1 Answers  


define the terminology association.

0 Answers  


what is an object class?Explain its methods?

6 Answers  


What is intern method in java?

0 Answers  


What is bool mean?

0 Answers  


Explain about field hiding in java?

0 Answers  


Are arrays primitive data types?

0 Answers  


How does arrays sort work in java?

0 Answers  


What is parameters example?

0 Answers  


What is the purpose of assert keyword used in jdk1.4.x?

0 Answers  


Which class is the immediate superclass of the Container class?

1 Answers  


Name few java 8 annotations ?

0 Answers  


Categories