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-2/java/832_Flipping_an_Image.java at master · avain/leetcode-2 Expand file tree/ Copy path832_Flipping_an_Image.javaMore file actions 13 lines (12 loc) · 338 Bytes / Copy path832_Flipping_an_Image.javaFile metadata and controls13 lines (12 loc) · 338 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 class Solution { public int[][] flipAndInvertImage(int[][] A) { int C = A[0].length; for (int[] row: A) for (int i = 0; i < (C + 1) / 2; ++i) { int tmp = row[i] ^ 1; row[i] = row[C - 1 - i] ^ 1; row[C - 1 - i] = tmp; } return A; } } |
| 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. |