Skip to content

Commit 94e37fc

Browse files
authored
Update find-all-people-with-secret.cpp
1 parent 8f96278 commit 94e37fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/find-all-people-with-secret.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Solution {
3535
}
3636
adj.clear();
3737
}
38-
return vector<int>(cbegin(result), cend(result));
38+
return {cbegin(result), cend(result)};
3939
}
4040
};
4141

@@ -72,7 +72,7 @@ class Solution2 {
7272
}
7373
adj.clear();
7474
}
75-
return vector<int>(cbegin(result), cend(result));
75+
return {cbegin(result), cend(result)};
7676
}
7777
};
7878

0 commit comments

Comments
 (0)