Skip to content

Commit 69d7fa5

Browse files
authored
Update Solution.java
1 parent 235fac8 commit 69d7fa5

File tree

1 file changed

+0
-3
lines changed
  • src/main/java/g2001_2100/s2056_number_of_valid_move_combinations_on_chessboard

1 file changed

+0
-3
lines changed

src/main/java/g2001_2100/s2056_number_of_valid_move_combinations_on_chessboard/Solution.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public int countCombinations(String[] pieces, int[][] positions) {
5151
}
5252
}
5353
}
54-
5554
return dfs(positions, endPosition, new int[pieces.length], 0);
5655
}
5756

@@ -63,13 +62,11 @@ private int dfs(int[][] positions, ArrayList[] stop, int[] stopIndex, int cur) {
6362
}
6463
return check(p, stop, stopIndex);
6564
}
66-
6765
int res = 0;
6866
for (int i = 0; i < stop[cur].size(); i++) {
6967
stopIndex[cur] = i;
7068
res += dfs(positions, stop, stopIndex, cur + 1);
7169
}
72-
7370
return res;
7471
}
7572

0 commit comments

Comments
 (0)