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

Commitcba27f1

Browse files
edit 498
1 parent633abea commitcba27f1

File tree

3 files changed

+3
-120
lines changed

3 files changed

+3
-120
lines changed

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

Lines changed: 0 additions & 81 deletions
This file was deleted.

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
/**
44
* 498. Diagonal Traverse
55
*
6-
* Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in diagonal order as shown in the below image.
6+
* Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in diagonal order
7+
* as shown in the below image.
78
89
Example:
910
@@ -22,7 +23,7 @@
2223
*/
2324
publicclass_498 {
2425

25-
/**Credit: https://discuss.leetcode.com/topic/77865/concise-java-solution/2
26+
/**Reference: https://discuss.leetcode.com/topic/77865/concise-java-solution/2
2627
* Just keep walking the matrix, when hitting the four borders (top, bottom, left or right),
2728
* just directions and keep walking.*/
2829
publicint[]findDiagonalOrder(int[][]matrix) {

‎src/test/java/com/fishercoder/DiagonalTraverseTest.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp