Skip to content

Commit dca9687

Browse files
authored
Update synonymous-sentences.cpp
1 parent abe1aa5 commit dca9687

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/synonymous-sentences.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Solution {
4545
(*inv_lookup)[(*lookup)[x]] = x;
4646
}
4747

48-
vector<string> split(const string& s, const char delim) {
48+
vector<string> split(const string& s, const char delim) const {
4949
vector<string> tokens;
5050
stringstream ss(s);
5151
string token;
@@ -57,7 +57,7 @@ class Solution {
5757
return tokens;
5858
}
5959

60-
vector<string> product(const vector<vector<string>>& options) {
60+
vector<string> product(const vector<vector<string>>& options) const {
6161
vector<string> result;
6262
int total = 1;
6363
for (const auto& opt : options) {

0 commit comments

Comments
 (0)