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

Commit7cfe73b

Browse files
fix build
1 parentd1a6451 commit7cfe73b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/main/java/com/fishercoder/solutions/_1711.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ public int countPairs(int[] deliciousness) {
1212
longpairs =0;
1313
for (inti =0;i <deliciousness.length;i++) {
1414
intpower =1;
15-
for (intj =0;j <22;j++) {//we only need to go up to 21 since one of the constraints is: 0 <= deliciousness[i] <= 2 to the power of 20
15+
//we only need to go up to 21 since one of the constraints is: 0 <= deliciousness[i] <= 2 to the power of 20
16+
for (intj =0;j <22;j++) {
1617
if (map.containsKey(power -deliciousness[i])) {
1718
pairs +=map.get(power -deliciousness[i]);
1819
pairs %=MODUALR;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp