阅读背景:

576. Out of Boundary Paths(Hard)

来源:互联网 

原题目:
  There is an m by n grid with a ball. Given the start coordinate (i,j) of the ball, you can move the ball to adjacent cell or cross the grid boundary in four directions (up, down, left, right). However, you can at most move N times. Find out the number of paths to move the ball out of grid boundary. The answer may be very large, return it after mod 109 + 7.   There is an m by n grid with a ball




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

分享到: