(List<Point>[][] flags, int x, int y)
| 79 | } |
| 80 | |
| 81 | static void cleanIslands(List<Point>[][] flags, int x, int y) { |
| 82 | flags[x][y] = null; |
| 83 | if (x > 0 && y > 0 && flags[x - 1][y - 1] != null && flags[x - 1][y - 1].size() == 1) { |
| 84 | flags[x - 1][y - 1] = null; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | public static class DiffResult{ |
| 89 |