Skip to content

Commit 8b1a7be

Browse files
refactor 576
1 parent eb0a96a commit 8b1a7be

File tree

1 file changed

+0
-28
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-28
lines changed

src/main/java/com/fishercoder/solutions/_576.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 576. Out of Boundary Paths
5-
*
6-
* There is an m by n grid with a ball.
7-
* Given the start coordinate (i,j) of the ball,
8-
* you can move the ball to adjacent cell or cross the grid boundary in four directions (up, down, left, right).
9-
* However, you can at most move N times. Find out the number of paths to move the ball out of grid boundary.
10-
* The answer may be very large, return it after mod 109 + 7.
11-
12-
Example 1:
13-
14-
Input:m = 2, n = 2, N = 2, i = 0, j = 0
15-
Output: 6
16-
Explanation:
17-
18-
Example 2:
19-
20-
Input:m = 1, n = 3, N = 3, i = 0, j = 1
21-
Output: 12
22-
Explanation:
23-
24-
Note:
25-
26-
Once you move the ball out of boundary, you cannot move it back.
27-
The length and height of the grid is in range [1,50].
28-
N is in range [0,50].
29-
30-
*/
313
public class _576 {
324
public static class Solution1 {
335
/**

0 commit comments

Comments
 (0)