diff --git a/epi_judge_java/epi/Permutations.java b/epi_judge_java/epi/Permutations.java index 3af40ace8..3aa98d399 100644 --- a/epi_judge_java/epi/Permutations.java +++ b/epi_judge_java/epi/Permutations.java @@ -19,13 +19,7 @@ public static boolean comp(List> expected, if (result == null) { return false; } - for (List l : expected) { - Collections.sort(l); - } expected.sort(new LexicographicalListComparator<>()); - for (List l : result) { - Collections.sort(l); - } result.sort(new LexicographicalListComparator<>()); return expected.equals(result); } diff --git a/epi_judge_java_solutions/epi/Permutations.java b/epi_judge_java_solutions/epi/Permutations.java index 46a92ee3e..ce4696eb3 100644 --- a/epi_judge_java_solutions/epi/Permutations.java +++ b/epi_judge_java_solutions/epi/Permutations.java @@ -41,13 +41,7 @@ public static boolean comp(List> expected, if (result == null) { return false; } - for (List l : expected) { - Collections.sort(l); - } expected.sort(new LexicographicalListComparator<>()); - for (List l : result) { - Collections.sort(l); - } result.sort(new LexicographicalListComparator<>()); return expected.equals(result); }