阅读背景:

[LeetCode] The Maze III 迷宫之三

来源:互联网 

 

There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up (u), down (d), left (l) or right (r), but it won't stop rolling until hitting a wall. When the ball stops, it could choose the next direction. There is also a hole in this maze. The ball will drop into the hole if it rolls on to the hole.There is a ball in a maze with empty spaces




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: