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 the difference between normal report & matrix report?

0 Answers  


Can we have any other return type than void for main method?

0 Answers  


What is difference between float and double?

0 Answers  


When would you use a static class?

0 Answers  


How do you avoid global variables?

0 Answers  






Can we write multiple catch blocks under single try block?

0 Answers  


What is the primitive type short?

0 Answers  


What is meant by Session? Explain something about HTTP Session Class?

1 Answers  


What are functions in java?

0 Answers  


Why does it take so much time to access an applet having swing components the first time?

0 Answers  


Can we catch more than one exception in a single catch block?

0 Answers  


Does isempty check for null?

0 Answers  


Categories