@Test public void basicTest1() { List<Integer>[] gra = new List[3]; for (int i = 0; i < 3; i++) { gra[i] = new ArrayList<>(); } for (int i = 0; i < 3; i++) { gra[i].add((i + 1) % 3); gra[(i + 1) % 3].add(i); } Assert.assertEquals("[0, 1, 2, 0]", EulerCycle.solveUndirectGraph(gra).toString()); }
public static List<Integer> solveUndirectGraph(List<Integer>[] graph) { return null; }
EulerCycle { public static List<Integer> solveUndirectGraph(List<Integer>[] graph) { return null; } }
EulerCycle { public static List<Integer> solveUndirectGraph(List<Integer>[] graph) { return null; }  }
EulerCycle { public static List<Integer> solveUndirectGraph(List<Integer>[] graph) { return null; }  static List<Integer> solveUndirectGraph(List<Integer>[] graph); }
EulerCycle { public static List<Integer> solveUndirectGraph(List<Integer>[] graph) { return null; }  static List<Integer> solveUndirectGraph(List<Integer>[] graph);  }