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

Commitd02cab9

Browse files
update method signature
1 parentcbf5fe3 commitd02cab9

File tree

1 file changed

+5
-5
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+5
-5
lines changed

‎src/main/java/com/fishercoder/solutions/_867.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
publicclass_867 {
44
publicstaticclassSolution1 {
5-
publicint[][]transpose(int[][]A) {
6-
int[][]result =newint[A[0].length][A.length];
7-
for (inti =0;i <A.length;i++) {
8-
for (intj =0;j <A[0].length;j++) {
9-
result[j][i] =A[i][j];
5+
publicint[][]transpose(int[][]matrix) {
6+
int[][]result =newint[matrix[0].length][matrix.length];
7+
for (inti =0;i <matrix.length;i++) {
8+
for (intj =0;j <matrix[0].length;j++) {
9+
result[j][i] =matrix[i][j];
1010
}
1111
}
1212
returnresult;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp