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

Why do we use regex?

0 Answers  


What is the difference between preparedstatement and statement in java?

0 Answers  


________ exception must be either caught or specified in throws class of the method.

1 Answers  


What is oop in java?

0 Answers  


please send code example of inner classes?

2 Answers  


Can we serialize static variables in java?

0 Answers  


What is the format of Inner Class after it compiled?

1 Answers  


Does a class inherit the constructors of its superclass in java programming?

0 Answers  


Explain Event handling in AWT?

1 Answers   Infosys, TCS,


How does multithreading take place on a computer with a single cpu in java programming?

0 Answers  


What are the OOAD concepts in java explain with examples?

4 Answers   Aricent, CTS,


What is array sorting in java?

0 Answers  


Categories