Assignment 12
Assignment 12
Input specification:
The first line of input will be two integers, R and C, specifying the number of rows and columns. The next R lines contain C characters each separated by white space, thereby specifying the layout of the maze. It is guaranteed that the maze will contain only one starting and one ending character. Also, it is guaranteed that the maze will contain only one correct path, from the start point to the end point.
Output specification:
Your program must output on one line, the number of hops required to reach the end point.