Skip to content

Commit cba27f1

Browse files
edit 498
1 parent 633abea commit cba27f1

File tree

3 files changed

+3
-120
lines changed

3 files changed

+3
-120
lines changed

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

-81
This file was deleted.

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

+3-2
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
public class _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
public int[] findDiagonalOrder(int[][] matrix) {

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

-37
This file was deleted.

0 commit comments

Comments
 (0)