Skip to content

Commit 2759acc

Browse files
authored
Update substring-with-concatenation-of-all-words.cpp
1 parent 57febd5 commit 2759acc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

C++/substring-with-concatenation-of-all-words.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
class Solution {
88
public:
99
vector<int> findSubstring(string s, vector<string>& words) {
10-
if (words.empty())
10+
if (words.empty()) {
1111
return {};
12+
}
1213

1314
vector<int> result;
1415
const int m = s.length(), n = words.size(), k = words.front().length();

0 commit comments

Comments
 (0)