Skip to content

Commit add41be

Browse files
authored
Update longest-harmonious-subsequence.cpp
1 parent c7958f8 commit add41be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/longest-harmonious-subsequence.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Solution {
66
int findLHS(vector<int>& nums) {
77
unordered_map<int, int> lookup;
88
auto result = 0;
9-
for (const auto& num: nums) {
9+
for (const auto& num : nums) {
1010
++lookup[num];
1111
for (const auto& diff : {-1, 1}) {
1212
if (lookup.count(num + diff)) {

0 commit comments

Comments
 (0)