We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc318d7 commit ae6b2f6Copy full SHA for ae6b2f6
src/main/java/com/fishercoder/solutions/_593.java
@@ -6,11 +6,6 @@
6
7
public class _593 {
8
public static class Solution1 {
9
- /**
10
- * Note: I don't need to use backtracking to find all permutations, this is an overkill.
11
- * This is the most easy one: https://leetcode.com/articles/kill-process-2/#approach-3-checking-every-case-accepted
12
- */
13
-
14
public boolean validSquare(int[] p1, int[] p2, int[] p3, int[] p4) {
15
List<int[]> input = new ArrayList<>(Arrays.asList(p1, p2, p3, p4));
16
List<List<int[]>> allPermuations = getAllPermutations(input);
0 commit comments