mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
Refactor Code Style (#4151)
This commit is contained in:
@@ -31,7 +31,7 @@ public class UniquePaths {
|
||||
|
||||
// The above method runs in O(n) time
|
||||
public static boolean uniquePaths2(int m, int n, int ans) {
|
||||
int dp[][] = new int[m][n];
|
||||
int[][] dp = new int[m][n];
|
||||
for (int i = 0; i < m; i++) {
|
||||
dp[i][0] = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user