Skip to content

Commit 455f1b2

Browse files
[LEET-2022] refactor 2022
1 parent 002f88c commit 455f1b2

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/com/fishercoder/solutions/thirdthousand

1 file changed

+1
-2
lines changed

src/main/java/com/fishercoder/solutions/thirdthousand/_2022.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
public class _2022 {
44
public static class Solution1 {
55
public int[][] construct2DArray(int[] original, int m, int n) {
6-
int size = original.length;
7-
if (m * n != size) {
6+
if (m * n != original.length) {
87
return new int[][]{};
98
}
109
int[][] ans = new int[m][n];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy