Skip to content

Commit a1103ed

Browse files
committed
Runtime: 15 ms (Top 43.19%) | Memory: 10.3 MB (Top 18.60%)
1 parent 82ebfc9 commit a1103ed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/algorithms/G/Groups of Special-Equivalent Strings/Groups of Special-Equivalent Strings.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 15 ms (Top 43.19%) | Memory: 10.3 MB (Top 18.60%)
12
class Solution {
23
public:
34
int numSpecialEquivGroups(vector<string>& words) {
@@ -12,14 +13,14 @@ class Solution {
1213
sort(odd.begin(), odd.end());
1314
even+=odd;
1415
v.push_back({it, even});
15-
16+
1617
}
17-
18+
1819
map<string, int>m;
1920
for(auto it:v) {
2021
m[it.second]++;
2122
}
22-
23+
2324
return m.size();
2425
}
25-
};
26+
};

0 commit comments

Comments
 (0)