We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 002f88c commit 455f1b2Copy full SHA for 455f1b2
src/main/java/com/fishercoder/solutions/thirdthousand/_2022.java
@@ -3,8 +3,7 @@
3
public class _2022 {
4
public static class Solution1 {
5
public int[][] construct2DArray(int[] original, int m, int n) {
6
- int size = original.length;
7
- if (m * n != size) {
+ if (m * n != original.length) {
8
return new int[][]{};
9
}
10
int[][] ans = new int[m][n];
0 commit comments