Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit455f1b2

Browse files
[LEET-2022] refactor 2022
1 parent002f88c commit455f1b2

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
publicclass_2022 {
44
publicstaticclassSolution1 {
55
publicint[][]construct2DArray(int[]original,intm,intn) {
6-
intsize =original.length;
7-
if (m *n !=size) {
6+
if (m *n !=original.length) {
87
returnnewint[][]{};
98
}
109
int[][]ans =newint[m][n];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp