Skip to content

Commit 534cfb4

Browse files
committed
Runtime: 175 ms (Top 32.17%) | Memory: 41.7 MB (Top 33.74%)
1 parent 4b088d4 commit 534cfb4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/L/Longest Harmonious Subsequence/Longest Harmonious Subsequence.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
// Runtime: 175 ms (Top 32.17%) | Memory: 41.7 MB (Top 33.74%)
12
class Solution {
23
public:
3-
int findLHS(vector<int>& nums)
4+
int findLHS(vector<int>& nums)
45
{
56
map<int,int> m;
67
for(int i=0;i<nums.size();i++)
@@ -19,7 +20,7 @@ class Solution {
1920
y=i->second;
2021
}
2122
return ans;
22-
23+
2324
}
2425
};
2526
//if you like the solution plz upvote.

0 commit comments

Comments
 (0)