Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit477317d

Browse files
refactor 1128
1 parent48f8efb commit477317d

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
importjava.util.HashMap;
44
importjava.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
publicclass_1128 {
227
publicstaticclassSolution1 {
238
publicintnumEquivDominoPairs(int[][]dominoes) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp