GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — leetcode-1/java/867_Transpose_Matrix.java at master · jiege1994/leetcode-1 Expand file tree/ Copy path867_Transpose_Matrix.javaMore file actions 11 lines (11 loc) · 296 Bytes / Copy path867_Transpose_Matrix.javaFile metadata and controls11 lines (11 loc) · 296 Bytes 1 2 3 4 5 6 7 8 9 10 11 class Solution { public int[][] transpose(int[][] A) { int R = A.length, C = A[0].length; int[][] ans = new int[C][R]; for (int r = 0; r < R; ++r) for (int c = 0; c < C; ++c) { ans[c][r] = A[r][c]; } return ans; } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |