Skip to content

Commit 477317d

Browse files
refactor 1128
1 parent 48f8efb commit 477317d

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/main/java/com/fishercoder/solutions/_1128.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,6 @@
33
import java.util.HashMap;
44
import java.util.Map;
55

6-
/**
7-
* 1128. Number of Equivalent Domino Pairs
8-
*
9-
* Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if either (a==c and b==d), or (a==d and b==c) - that is, one domino can be rotated to be equal to another domino.
10-
* Return the number of pairs (i, j) for which 0 <= i < j < dominoes.length, and dominoes[i] is equivalent to dominoes[j].
11-
*
12-
* Example 1:
13-
*
14-
* Input: dominoes = [[1,2],[2,1],[3,4],[5,6]]
15-
* Output: 1
16-
*
17-
* Constraints:
18-
* 1 <= dominoes.length <= 40000
19-
* 1 <= dominoes[i][j] <= 9
20-
* */
216
public class _1128 {
227
public static class Solution1 {
238
public int numEquivDominoPairs(int[][] dominoes) {

0 commit comments

Comments
 (0)