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 best way to findout the time/memory consuming process?

0 Answers  


What is the difference between choice and list?

0 Answers  


What is the difference between call by reference and call by pointer?

0 Answers  


What is a java predicate?

0 Answers  


How many types of equations are there?

0 Answers  






Why does java not allow multiple public classes in a java file ?

2 Answers  


which pattern is default in scanner package?

0 Answers   Satyam,


what is Hashmap & Hashtable wirh example?

5 Answers   CTS, Saksoft,


What is an immutable object?

0 Answers  


What is the GregorianCalendar class?

2 Answers   HCL,


Does java have a compiler?

0 Answers  


What are the advantages of user defined functions?

0 Answers  


Categories