Skip to content

Commit 998bada

Browse files
committed
Runtime: 1019 ms (Top 30.96%) | Memory: 17.6 MB (Top 38.10%)
1 parent ce1021d commit 998bada

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/algorithms/N/Number of Wonderful Substrings/Number of Wonderful Substrings.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 1019 ms (Top 30.96%) | Memory: 17.6 MB (Top 38.10%)
12
class Solution {
23
public:
34
long long wonderfulSubstrings(string word) {
@@ -14,14 +15,13 @@ class Solution {
1415
int x=temp^(1<<j);
1516
ans+=m[x];
1617
j++;
17-
18+
1819
}
1920
ans+=m[mask];
2021
m[mask]++;
2122
}
22-
23-
23+
2424
return ans;
25-
25+
2626
}
27-
};
27+
};

0 commit comments

Comments
 (0)