Lintcode787 - The Maze
787 · The Maze - LintCode # Description There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up , down , left or right , but it won't stop rolling until hitting a wall . When the ball stops, it could choose the next direction. Given the...
more...