We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b088d4 commit 534cfb4Copy full SHA for 534cfb4
scripts/algorithms/L/Longest Harmonious Subsequence/Longest Harmonious Subsequence.cpp
@@ -1,6 +1,7 @@
1
+// Runtime: 175 ms (Top 32.17%) | Memory: 41.7 MB (Top 33.74%)
2
class Solution {
3
public:
- int findLHS(vector<int>& nums)
4
+ int findLHS(vector<int>& nums)
5
{
6
map<int,int> m;
7
for(int i=0;i<nums.size();i++)
@@ -19,7 +20,7 @@ class Solution {
19
20
y=i->second;
21
}
22
return ans;
-
23
+
24
25
};
26
//if you like the solution plz upvote.
0 commit comments