Skip to content

Commit cd97a43

Browse files
refactor 867
1 parent 074f796 commit cd97a43

File tree

1 file changed

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

1 file changed

+0
-20
lines changed

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

-20
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 867. Transpose Matrix
5-
*
6-
* Given a matrix A, return the transpose of A.
7-
* The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and column indices of the matrix.
8-
*
9-
* Example 1:
10-
*
11-
* Input: [[1,2,3],[4,5,6],[7,8,9]]
12-
* Output: [[1,4,7],[2,5,8],[3,6,9]]
13-
* Example 2:
14-
*
15-
* Input: [[1,2,3],[4,5,6]]
16-
* Output: [[1,4],[2,5],[3,6]]
17-
*
18-
* Note:
19-
*
20-
* 1 <= A.length <= 1000
21-
* 1 <= A[0].length <= 1000
22-
* */
233
public class _867 {
244
public static class Solution1 {
255
public int[][] transpose(int[][] A) {

0 commit comments

Comments
 (0)