Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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
&#61607; White will have 1 Weight.
&#61607; Red and Green carry no weights.
&#61607; 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 largest long allowed by java?

0 Answers  


Can an object subclass another object?

0 Answers  


Are private methods final?

0 Answers  


What is a buffer in computer?

0 Answers  


Is void a return type?

0 Answers  


Is array synchronized in java?

0 Answers  


Explain the importance of finalize() method.

0 Answers  


How to find the length and capacity of a string buffer ?

2 Answers  


Do I need to import java.lang package any time? Why?

1 Answers  


What is the difference between access specifiers and access modifiers in java? 16

0 Answers  


Can a final method be overloaded?

0 Answers  


What is the hashcode () and equals () used for?

0 Answers  


Categories