← 返回 meta 的题目列表Maze Path Printing
类型:online_judge
Given a maze and a path, where the maze is a 2D grid labeled with 'e' as entry and 'E' as exit, and the path is represented by the coordinates of the points it passes through, mark the path on the maze with '*', except for the entry and exit. Print the modified maze.
Example
Input
[['e', '.', '.'], ['.', '#', '.'], ['.', '.', 'E']] [(0,0), (0,1), (1,1), (2,1), (2,2)]
Output
e**
.*.
.*E